Hot answers tagged


driver.findElement("pincode")).sendKeys(rs.getString(1)); Is this what you looking for


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);", "");


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-


You are using java jdk 8 , You should update it to jdk 11+

Only top voted, non community-wiki answers of a minimum length are eligible