請在下面找到單擊硒錶鏈接webdriver的
<tbody>
<tr>
<td class="menubox">
<table id="menubar" border="0">
<tbody>
<tr id="mytr">
<td class="level1" id="panel" onclick="popupwin onmouseover="this.classname onclick="popupwin"> menu1</td>
<td class="level1" id="panel" onclick="popupwin onmouseover="this.classname onclick="popupwin"> menu2</td>
<td class="level1" id="panel" onclick="popupwin onmouseover="this.classname onclick="popupwin"> menu3</td>
我特林訪問菜單3列是與XPath
//table[@id='menubar']/tbody/tr/td[3]
一個鏈接,但拋出一個錯誤,沒有這樣的元素示例代碼發現 。任何人都可以建議在xpath中出現什麼問題?
你試過了嗎? '// @ [@ id ='menubar']/tbody/tr/td [3]' –
@ bhargav julaganti,你的表結構代碼是對的嗎? – Mani