2
driver.findElement(By.name("pincode")).sendKeys(rs.getString(1));
Is this what you looking for
1
Mobile and windows screen will have different size ,
I checked the page and it seems the height is larger in mobile screen try using
jaa.executeScript("document.body.scrollBy(0,350);", "");
1
To gather the items for your list it looks like you don't need to be specific. Try something like this:
List<WebElement> options = driver.findElements(By.xpath(//*[contains(@id,"mat-option-")]));
That will populate your options List with all the elements that have an ID that contains mat-option-
1
You are using java jdk 8 ,
You should update it to jdk 11+
https://stackoverflow.com/q/9170832/6793637
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
java × 1245selenium-webdriver × 1050
automated-testing × 426
testng × 142
selenium2 × 89
xpath × 65
browser-automation × 56
cucumber × 53
appium × 52
junit × 47
test-automation-framework × 44
page-objects × 42
javascript × 37
eclipse × 35
jmeter × 30
chromedriver × 29
android × 18
mobile-automation × 17
firefoxdriver × 17
assert × 17
python × 16
maven × 16
test-design × 15
unit-tests × 15
rest-api × 14