Python - 无法按Xpath,ID和名称查找元素

时间:2018-02-23 17:19:47

标签: python selenium xpath

enter image description here

enter image description here

我最近刚开始使用Python,我试图在搜索栏中输入内容,如图所示。

我尝试过Xpath,名称和ID,但这些都没有。它看起来非常简单,但我一直收到错误消息。

我试过了:

driver.find_element_by_xpath('//*[@id="PRCSRUNCNTL_RUN_CNTL_ID"]')
driver.find_element_by_name("PRCSRUNCNTL_RUN_CNTL_ID")
driver.find_element_by_id("win0divPRCSRUNCNTL_RUN_CNTL_ID")

Xpath的错误消息:

enter image description here

0 个答案:

没有答案
相关问题