我需要在我的测试中打开一个新的浏览器选项卡,我已经读到最好的方法是简单地向浏览器发送适当的键。我使用的是windows,所以我使用的是ActionChains(driver).send_keys(Keys.CONTROL, "t").perform(),但是,这没有任何作用。import ActionChains
from selenium.webdri
就像主题说的,我想打开网页,双击word,然后选择单词做鼠标右键点击,然后从菜单中选择复制。到目前为止,我有以下代码做一切,打开谷歌,点击word,调用鼠标右键单击,但我不知道如何做/使用向下箭头键选择复制。以下是代码:from selenium.webdriver.common.by import By
from selenium.webdriver.
我正试着把我的名字放在输入栏里。selenium似乎是一件简单的事情,但是我不知道我做错了什么。我知道xpath是正确的,因为我从chrome inspector那里复制了它。我得到的错误是
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactabledriver.find_element_by_xpath('//input[@id=