Automation Question: Download Automation PDF
Tell us what kind of keyboard operations can be performed in Selenium?
Answer:
Selenium lets to perform different kinds of keyboard operations, such as:
☛ .pressKey("non-text keys") is used for keys like control, function keys etc that are non-text
☛ .releaseKey("non-text keys") is used in conjunction with key press event to simulate releasing a key from keyboard event
☛ .sendKeys("sequence of characters") is used for passing character sequence to an input or textbox element.
☛ .pressKey("non-text keys") is used for keys like control, function keys etc that are non-text
☛ .releaseKey("non-text keys") is used in conjunction with key press event to simulate releasing a key from keyboard event
☛ .sendKeys("sequence of characters") is used for passing character sequence to an input or textbox element.
Previous Question | Next Question |
Tell me could cookies be deleted in Selenium? | Do you know how to locate a link using its text in Selenium? |