如何在选定的行上运行onclick
?
运行JavaScript onClick
事件与蟒蛇, 我想是这样的:如何在python上运行onclick函数
driver.find_element_by_id('fastforward').click()
page code on site (selected row)
或其它为例:(外HTML)
<a href="#" onclick="if(typeof jsfcljs == 'function') {jsfcljs(document.getElementById('j_id31'),{'j_id31:j_id35':'j_id31:j_id35'},'');}return false" class="sf-with-ul">Selection One</a>
.sf-menu > li:nth-child(2) > a:nth-child(1) (Unique selector code)
你想点击'tr'或'td'元素吗? – Andersson