Can't send keys selenium webdriver python

后端 未结 4 772
庸人自扰
庸人自扰 2021-01-21 08:16

Trying to execute simple test

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Firefox()

driver.get(\'http://g         


        
4条回答
  •  暖寄归人
    2021-01-21 08:35

    You must change the reference element

    driver.get('http://google.com')
    elem.find_element_by_name('q')
    elem.send_keys('hey')
    

提交回复
热议问题