Actions class sendKeys method explained in detail with code.
Like our facebook page www.facebook.com/ankprotraining
sendKeys method in Actions class :
sendKeys(CharSequence key)- Sends a sequence of keystrokes to the browser.
sendKeys(WebElement target, CharSequence key)- Sends a sequence of keystrokes to the specified element in the browser.
Possible Interview Questions on selenium actions class sendkeys :
How to use selenium actions class sendKeys method?
How to send tab key in selenium?
How to send control key in selenium?
Code :
@Test
public void actionsSendKeys() throws InterruptedException
{
WebDriver driver = new FirefoxDriver();
driver.get("http://www.uitestpractice.com/Student...");
Actions actions=new Actions(driver);
// actions.sendKeys(Keys.END)
// .perform();
//
// Thread.sleep(2000);
//
// actions.sendKeys(Keys.HOME)
// .perform();
actions.sendKeys(driver.findElement(By.name("click")),Keys.ENTER)
.build()
.perform();
Thread.sleep(2000);
driver.quit();
}
En esta página del sitio puede ver el video en línea Selenium with Java 32 - Actions class sendKeys method explained in detail with code de Duración hora minuto segunda en buena calidad , que subió el usuario Ankpro Training 06 julio 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,937 veces y le gustó 11 a los espectadores. Disfruta viendo!