A
A
ACOT-Murmansk2016-03-10 15:01:34
JavaScript
ACOT-Murmansk, 2016-03-10 15:01:34

How to set key combinations in sendKeys Selenium webdriverjs?

I use a bunch of selenium + javascript under Windows. How to send via sendKeys to the found element (textarea) the key combination Ctrl-a (select all)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Shatokhin, 2016-03-10
@ACOT-Murmansk

element.keyDown(webdriver.Key.CONTROL).sendKeys('a').keyUp(webdriver.Key.CONTROL);

or
or
element.sendKeys(webdriver.Key.CONTROL, "a")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question