Skip to content

Commit 0f61322

Browse files
Minor improvements:
- Update to Selenium 2.45.0. - Fix of MobileBrowserCompatibilityTest
1 parent ceeaaeb commit 0f61322

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<dependency>
1616
<groupId>org.seleniumhq.selenium</groupId>
1717
<artifactId>selenium-java</artifactId>
18-
<version>2.43.1</version>
18+
<version>2.45.0</version>
1919
</dependency>
2020
<dependency>
2121
<groupId>junit</groupId>

src/test/java/io/appium/java_client/pagefactory_tests/DesctopBrowserCompatibilityTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public void setUp(Class<? extends WebDriver> driverClass) {
154154
@iOSFindBys({
155155
@iOSFindBy(xpath = "//selector[1]"),
156156
@iOSFindBy(xpath = "//someTag")})
157-
@FindBy(id="gbqfb")
157+
@FindBy(name="btnG")
158158
private RemoteWebElement searchButton;
159159

160160
@AndroidFindBy(className = "someClass")
@@ -165,7 +165,7 @@ public void setUp(Class<? extends WebDriver> driverClass) {
165165
private List<WebElement> foundLinks;
166166

167167
private List<WebElement> ires; //this list is located by id="ires"
168-
private WebElement gbqfb; //this element is found by id="gbqfb"
168+
private WebElement btnG; //this element is found by name="btnG"
169169
private WebDriver trap1;
170170
private List<AndroidDriver> trap2;
171171

@@ -184,7 +184,7 @@ private void test(WebDriver driver){
184184
Assert.assertNotEquals(0, ires.size());
185185
Assert.assertEquals(null, trap1);
186186
Assert.assertEquals(null, trap2);
187-
gbqfb.click();
187+
btnG.click();
188188
} finally {
189189
driver.quit();
190190
}

0 commit comments

Comments
 (0)