Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Selenium:从jscontoller读取数据_Python_Python 3.x_Selenium - Fatal编程技术网

Python Selenium:从jscontoller读取数据

Python Selenium:从jscontoller读取数据,python,python-3.x,selenium,Python,Python 3.x,Selenium,我正在尝试查找div中的所有文本,后跟jscontoller=“H6e0Ge” 这是我的密码: driver = webdriver.Chrome(path) driver.get('https://play.google.com/store/apps/details?id=com.axis.drawingdesk.v3&hl=en&showAllReviews=true') driver.find_elements_by_xpath("//div[@jscontoller='

我正在尝试查找div中的所有文本,后跟jscontoller=“H6e0Ge”

这是我的密码:

driver = webdriver.Chrome(path)
driver.get('https://play.google.com/store/apps/details?id=com.axis.drawingdesk.v3&hl=en&showAllReviews=true')
driver.find_elements_by_xpath("//div[@jscontoller='H6eOGe']")

但是,它返回空值。有谁能告诉我哪里出错了吗?

请参考一个ESKRYchrome插件工具来检查XPATH是否正确。尝试在chrome浏览器中首先使用ESKRY插件定位元素并检查结果

查看youtube URL了解更多ESKRY插件使用详细信息:


很可能是xpath有问题。要检查其是否正确,请右键单击其中一个元素,然后单击copy-xpath。然后粘贴到某个地方,看看你的路径是否正确。