File tree Expand file tree Collapse file tree 14 files changed +20
-15
lines changed
src/test/java/com/browserstack Expand file tree Collapse file tree 14 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ local.log
66.gradle
77build /
88.DS_Store
9+ browserstack.err
10+ gradle /
11+ gradlew
12+ gradlew.bat
13+ logs /
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ plugins {
55repositories { mavenCentral() }
66
77dependencies {
8- implementation ' org.testng:testng:6.9.10 '
8+ implementation ' org.testng:testng:7.4.0 '
99 implementation ' commons-io:commons-io:1.3.2'
1010 implementation ' org.seleniumhq.selenium:selenium-java:4.1.0'
11- implementation ' com.browserstack:browserstack-local-java:0. 1.0'
11+ implementation ' com.browserstack:browserstack-local-java:1.0.6 '
1212 implementation ' com.googlecode.json-simple:json-simple:1.1.1'
1313}
1414
Original file line number Diff line number Diff line change 2424 <dependency >
2525 <groupId >org.testng</groupId >
2626 <artifactId >testng</artifactId >
27- <version >6.9.10 </version >
27+ <version >7.4.0 </version >
2828 </dependency >
2929 <dependency >
3030 <groupId >commons-io</groupId >
3939 <dependency >
4040 <groupId >com.browserstack</groupId >
4141 <artifactId >browserstack-local-java</artifactId >
42- <version >1.0.3 </version >
42+ <version >1.0.6 </version >
4343 </dependency >
4444 <dependency >
4545 <groupId >com.googlecode.json-simple</groupId >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void test() throws Exception {
2222 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2323
2424 // See if the cart is opened or not
25- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
25+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2626
2727 // Check the product inside the cart is same as of the main page
2828 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_01() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_02() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_03() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_04() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_05() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public void test_06() throws Exception {
2424 driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
2525
2626 // See if the cart is opened or not
27- Assert .assertTrue (driver .findElement (By .className ( " float-cart__content" )).isDisplayed ());
27+ Assert .assertTrue (driver .findElement (By .cssSelector ( ". float\\ -cart__content" )).isDisplayed ());
2828
2929 // Check the product inside the cart is same as of the main page
3030 String productOnCartText = driver .findElement (By .xpath ("//*[@id=\" __next\" ]/div/div/div[2]/div[2]/div[2]/div/div[3]/p[1]" )).getText ();
You can’t perform that action at this time.
0 commit comments