擅长:python、mysql、java
<p>确保您正在等待元素加载并在dom中可见</p>
<p>然后使用<code>find_element_by_css_selector</code></p>
<pre><code>selector = driver.find_element_by_css_selector("li[select=\"changeTab('M Pass Movies')\"]")
selector.click()
</code></pre>
<p>或</p>
<pre><code>selector = driver.find_elements_by_css_selector("li[class='tab-pane ng-isolate-scope']")[0]
</code></pre>