Skip to content

Commit 62af473

Browse files
authored
Merge pull request #9 from browserstack/use_native
add type to AndroidDriver
2 parents 2172119 + d667cc8 commit 62af473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/BrowserStackAndroid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void main(String args[]) throws MalformedURLException, Interrupted
2222
capabilities.setCapability("device", "Samsung Galaxy S7");
2323
capabilities.setCapability("app", "bs://<hashed app-id>");
2424

25-
AndroidDriver driver = new AndroidDriver<AndroidElement>(new URL("https://"+userName+":"+accessKey+"@hub.browserstack.com/wd/hub"), capabilities);
25+
AndroidDriver<AndroidElement> driver = new AndroidDriver<AndroidElement>(new URL("https://"+userName+":"+accessKey+"@hub.browserstack.com/wd/hub"), capabilities);
2626

2727
AndroidElement searchElement = (AndroidElement) new WebDriverWait(driver, 30).until(
2828
ExpectedConditions.elementToBeClickable(MobileBy.AccessibilityId("Search Wikipedia")));

0 commit comments

Comments
 (0)