Код, который я здесь написал:
Код: Выделить всё
> JavascriptExecutor js=(JavascriptExecutor)driver;
> Actions act=new Actions(driver);
> js.executeScript("window.scrollBy(0,500)");
> WebElement we=driver.findElement(By.xpath("//div[@id='state']"));
> act.moveToElement(we).click().build().perform();
> WebElement we3=driver.findElement(By.xpath("//div[contains(.,'Uttar
> Pradesh')]/following-sibling::div/descendant::input"));
act.moveToElement(we3).click(we3).build().perform();


Подробнее здесь: https://stackoverflow.com/questions/635 ... n-selenium
Мобильная версия