0 votes
in Selenium by
How can you handle keyboard and mouse actions using Selenium?

1 Answer

0 votes
by

How can you handle keyboard and mouse actions using Selenium?

You can handle keyboard and mouse events with the advanced user interaction API. The advanced user interactions API contains actions and action classes.

Method Description

clickAndHold() Clicks without releasing the current mouse location 

dragAndDrop() Performs click-and-hold at the location of the source element 

keyDown(modifier_key) Performs a modifier key press (ctrl, shift, Fn, etc.) 

keyUp(modifier_key) Performs a key release

Related questions

0 votes
asked Apr 5, 2021 in Protractor by Robindeniel
0 votes
asked Oct 8, 2022 in JavaScript by rajeshsharma
...