【发布时间】:2014-08-25 12:03:49
【问题描述】:
(1) html:
<table class="title_button" onclick="onSave();" onmouseout="this.className='title_button'; save_moveout();" onmouseover="this.className='title_button_hi'; save_movein();" title="Copy Running-config to Startup-config">
<tbody>
<tr>
<td>
<img id="title_btn_save" src="https://192.168.100.116/image/title_btn_alert.gif">
</td>
<td id="title_save">Save</td>
</tr>
</tbody>
</table>
(2) Webdriver Java:
这两种方法都试过了,都不行。
driver.findElement(By.id("title_save")).click();
driver.findElement(By.xpath("/html/body/div/table/tbody/tr/td/table/tbody/tr/td[8]/table/tbody/tr/td/div/table/tbody/tr/td[2][@id='title_save'")).click();
(3) 例外:
webdriver element is not currently interactable and may not be manipulated.
【问题讨论】:
标签: java javascript selenium selenium-webdriver webdriver