File tree 14 files changed +20
-15
lines changed
src/test/java/com/browserstack
14 files changed +20
-15
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,8 @@ local.log
6
6
.gradle
7
7
build /
8
8
.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 {
5
5
repositories { mavenCentral() }
6
6
7
7
dependencies {
8
- implementation ' org.testng:testng:6.9.10 '
8
+ implementation ' org.testng:testng:7.4.0 '
9
9
implementation ' commons-io:commons-io:1.3.2'
10
10
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 '
12
12
implementation ' com.googlecode.json-simple:json-simple:1.1.1'
13
13
}
14
14
Original file line number Diff line number Diff line change 24
24
<dependency >
25
25
<groupId >org.testng</groupId >
26
26
<artifactId >testng</artifactId >
27
- <version >6.9.10 </version >
27
+ <version >7.4.0 </version >
28
28
</dependency >
29
29
<dependency >
30
30
<groupId >commons-io</groupId >
39
39
<dependency >
40
40
<groupId >com.browserstack</groupId >
41
41
<artifactId >browserstack-local-java</artifactId >
42
- <version >1.0.3 </version >
42
+ <version >1.0.6 </version >
43
43
</dependency >
44
44
<dependency >
45
45
<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 {
22
22
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
23
23
24
24
// 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 ());
26
26
27
27
// Check the product inside the cart is same as of the main page
28
28
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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 {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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_07() throws Exception {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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_08() throws Exception {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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_09() throws Exception {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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_10() throws Exception {
24
24
driver .findElement (By .xpath ("//*[@id=\" 1\" ]/div[4]" )).click ();
25
25
26
26
// 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 ());
28
28
29
29
// Check the product inside the cart is same as of the main page
30
30
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