擅长:python、mysql、java
<p>要单击该按钮,必须在对象上调用<code>evaluateJavascript</code>:</p>
<pre><code>jsClick = """var evObj = document.createEvent('MouseEvents');
evObj.initEvent('click', true, true );
this.dispatchEvent(evObj);
"""
allSelector = "a#deviceShowAllLink" # This is the css selector you actually need
allButton = r.frame.documentElement().findFirst(allSelector)
allButton.evaluateJavaScript(jsClick)
</code></pre>