Skip to content

Commit 4c0c810

Browse files
kamal-kaur04francisf
authored andcommitted
update browserstack-local version
1 parent 475a29e commit 4c0c810

14 files changed

+20
-15
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ local.log
66
.gradle
77
build/
88
.DS_Store
9+
browserstack.err
10+
gradle/
11+
gradlew
12+
gradlew.bat
13+
logs/

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ plugins {
55
repositories { mavenCentral() }
66

77
dependencies {
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

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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>
@@ -39,7 +39,7 @@
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>

src/test/java/com/browserstack/SingleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest01.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest02.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest03.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest04.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest05.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest06.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

src/test/java/com/browserstack/suite/SuiteTest07.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void test_07() 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();

src/test/java/com/browserstack/suite/SuiteTest08.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void test_08() 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();

src/test/java/com/browserstack/suite/SuiteTest09.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void test_09() 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();

src/test/java/com/browserstack/suite/SuiteTest10.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public void test_10() 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();

0 commit comments

Comments
 (0)