selenium python send_key error: list object has no attribute

前端 未结 6 1687
花落未央
花落未央 2021-01-19 00:31

Helo,

my xpath does validate in firePath but when I try to send _key I get an error.

userID = driver.find_elements_by_xpath(\".//*[@id=\'UserName\']\         


        
6条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 00:57

    driver.find_element_by_xpath(".//*[@id='UserName']").send_keys('username')

    find_element without s.

提交回复
热议问题