Webdriver mouse operation & keyboard operation

mouse operation

Need to introduce ActionChains class. Call the relevant mouse operation method in ActionChain().

Case: Enter python in the Baidu search input box, then double-click the input box, right-click to operate, and hover the mouse over the settings button.



keyboard operation

Case: Enter python in the Baidu search input box. Select all and copy or cut python, open Sogou, paste python in the Sogou search input box, and click the search button to search.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325427584&siteId=291194637