Pressing Ctrl+A in Selenium WebDriver

前端 未结 13 952
一向
一向 2020-11-27 02:45

I need to press Ctrl+A keys using Selenium WebDriver. Is there any way to do it?

I checked the Selenium libraries and found that Selenium allow

13条回答
  •  [愿得一人]
    2020-11-27 03:29

    For Python:

    ActionChains(driver).key_down(Keys.CONTROL).send_keys("a").key_up(Keys.CONTROL).perform();
    

提交回复
热议问题