擅长:python、mysql、java
<p>以下是我的作品</p>
<pre><code>from selenium import webdriver
d = webdriver.Chrome()
url = 'https://firehouse.alohaorderonline.com/StartOrder.aspx?SelectMenuType=Retail&SelectMenu=1000560&SelectSite=01291'
d.get(url)
d.execute_script('document.getElementById("ctl00_ctl00_Content_Content_btnPickup").click();')
</code></pre>
<hr/>
<p>来自@Andersson的有用警告</p>
<p><em>元素。单击()通过execute_脚本执行并没有真正的点击,只是触发元素的onclick操作(链接、输入、按钮等)。因此,如果您使用这种方法进行web测试,您可能会漏掉大量错误</em></p>