2016-06-21 2 views

ответ

0

Вы можете использовать следующее:

driver.findElement(By.name("userName")).sendKeys(Keys.TAB); //this will press the tab on your current element 
    driver.switchTo().activeElement().sendKeys("YourInput");//this will put the focus on your current element i.e. next element and you can perform any function as desired. 
Смежные вопросы