Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Selenium with Java 31 - Actions class Keydown and keyup method explained in detail with code

Actions class Keydown and keyup method explained in detail with code. Like our facebook page www.facebook.com/ankprotraining keyDown Methods in Actions Class : keyDown(CharSequence key)- Sends a modifier key down message to the browser. keyDown(WebElement element, CharSequence Key)- Sends a modifier key down message to the specified element in the browser. keyUp Methods in Actions Class : keyUp(CharSequence key) -Sends a modifier key up message to the browser. keyUp(WebElement element, CharSequence key)- Sends a modifier up down message to the specified element in the browser. Possible Interview Questions on selenium actions class key down and key up : How to use keyDown And keyUp methods. Code: @Test public void actionskeysDownAndkeysUp() throws InterruptedException { WebDriver driver = new FirefoxDriver(); driver.get("http://www.uitestpractice.com/Student..."); Actions actions=new Actions(driver); // actions.keyDown(Keys.CONTROL) // .click(driver.findElement(By.name("one"))) // .click(driver.findElement(By.name("six"))) // .click(driver.findElement(By.name("eleven"))) // .keyUp(Keys.CONTROL) actions.keyDown(driver.findElement(By.name("one")), Keys.CONTROL) .keyDown(driver.findElement(By.name("six")), Keys.CONTROL) .keyUp(driver.findElement(By.name("eleven")), Keys.CONTROL) .build() .perform(); Thread.sleep(2000); driver.quit(); }

Comments