所以我试图对此WebDriver脚本进行隐式等待,尽管我迷失了,因为最后三个函数因为没有激活的元素而失败。尽管有时加载速度足够快也可以使用。
错误<__main__.node object at 0x0000026152300400>
1
2
3
4
5
<__main__.node object at 0x00000261523257B8>
2
3
6
7
5
1
我尝试添加一个等待并将其放入自己的异步函数中。没事
Error: no such element: Unable to locate element: {"method":"css selector","selector":"#pricing-search > pricing-search > div:nth-child(4) > pricing-actions > div > div:nth-child(1) > div > input:nth-child(3)"}
(Session info: chrome=73.0.3683.86)
(Driver info: chromedriver=2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1),platform=Windows NT 10.0.17134 x86_64)