File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
src/test/java/com/browserstack/pageobjects Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ repositories {
77}
88
99dependencies {
10- implementation ' org.seleniumhq.selenium:selenium-java:4.1.0 '
10+ implementation ' org.seleniumhq.selenium:selenium-java:4.1.4 '
1111 testImplementation ' io.cucumber:cucumber-java:7.3.4'
1212 testImplementation ' io.cucumber:cucumber-testng:7.3.4'
1313 testImplementation ' io.cucumber:cucumber-core:7.3.4'
Original file line number Diff line number Diff line change 1616 <maven .compiler.target>1.8</maven .compiler.target>
1717 <cucumber .version>7.4.1</cucumber .version>
1818 <testng .version>7.4.0</testng .version>
19- <selenium-java .version>4.1.0 </selenium-java .version>
19+ <selenium-java .version>4.1.4 </selenium-java .version>
2020 <browserstack-local-java .version>1.0.6</browserstack-local-java .version>
2121 <json-simple .version>1.1.1</json-simple .version>
2222 <browserstack-java-sdk .version>LATEST</browserstack-java-sdk .version>
Original file line number Diff line number Diff line change 55import org .openqa .selenium .support .ui .ExpectedConditions ;
66import org .openqa .selenium .support .ui .WebDriverWait ;
77
8+ import java .time .Duration ;
9+
810public class HomePage {
911 private WebDriver webDriver ;
1012
@@ -33,7 +35,7 @@ public void clickAddToCartButton() {
3335 }
3436
3537 public void waitForCartToOpen () {
36- new WebDriverWait (webDriver ,30 ).until (ExpectedConditions .visibilityOfAllElementsLocatedBy (cartPane ));
38+ new WebDriverWait (webDriver , Duration . ofSeconds ( 30 ) ).until (ExpectedConditions .visibilityOfAllElementsLocatedBy (cartPane ));
3739 }
3840
3941 public String getProductCartText () {
You can’t perform that action at this time.
0 commit comments