python+selenium中的问题,类似下图的元素按钮,定位不到?

python+selenium使用两种方法报错ele=driver.find_element_by_css_selector( 'table > tbody >tr.el-table__row.el-table__row--striped:nth-child(2)>td:nth-child(3)>div.cell>span.popover>div.el-popover.el-popper>div:nth-child(2)') ele.click()
#### ActionChains(driver).move_to_element(ele).click().pause(2).perform()

定位不到无非两种情况
1。表达式错误 用谷歌浏览器自带验证验证一下就好了
2.要么没切换handle 要么没切换frame
温馨提示:答案为网友推荐,仅供参考
相似回答