擅长:python、mysql、java
<p>修复选择器(Imcphers应答/注释)后,是否可能在您试图找到元素时元素不在DOM中?它是动态加载的吗?如果是这样,您可能需要使用^{{cd1>}或^{{cd2>}等待。</p>
<p><a href="http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp" rel="nofollow">http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp</a></p>
<p>尝试
<code>driver.implicitly_wait(10)</code>
初始化驱动程序后</p>