Hot answers tagged

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