Skip to content

Commit c6283a0

Browse files
committed
remove unused imports and modify element selector
1 parent fc656d2 commit c6283a0

File tree

5 files changed

+4
-142
lines changed

5 files changed

+4
-142
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ This repository uses the BrowserStack SDK to run tests on BrowserStack. Follow t
6161

6262
## Using Gradle
6363

64+
### Prerequisites
65+
- If using Gradle, Java v9+ is required.
66+
6467
### Run sample build
6568

6669
- Clone the repository

src/test/java/com/browserstack/BStackDemoTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public void addProductToCart() throws Exception {
2020
driver.findElement(By.xpath("//*[@id=\"1\"]/div[4]")).click();
2121

2222
// See if the cart is opened or not
23-
Assert.assertTrue(driver.findElement(By.className("float-cart__content")).isDisplayed());
23+
Assert.assertTrue(driver.findElement(By.cssSelector(".float\\-cart__content")).isDisplayed());
2424

2525
// Check the product inside the cart is same as of the main page
2626
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/BrowserStackRemoteTest.java

-26
This file was deleted.

src/test/java/com/browserstack/BrowserStackTestNGTest.java

-112
This file was deleted.

src/test/java/com/browserstack/SeleniumTest.java

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
package com.browserstack;
22

3-
import java.net.URL;
4-
import java.util.HashMap;
5-
63
import org.testng.annotations.AfterMethod;
74
import org.testng.annotations.BeforeMethod;
85
import org.openqa.selenium.WebDriver;

0 commit comments

Comments
 (0)