Webdriver内联编辑:如何处理鼠标双击和双击

时间:2012-08-08 06:01:17

标签: hyperlink webdriver inline-editing


我需要双击内联编辑。如果对象已经填充并且是超链接,我将面临问题。我使用双击的那一刻,链接打开,而不是编辑模式中的字段。 这是HTML代码

<td class="dataCol ">
<span id="cust_contact"> 
<span ondblclick="if (window.sfPage && window.sfPage.hasRun) 
sfPage.dblClickField(event,this);" onmouseout="if (window.sfPage && window.sfPage.hasRun) sfPage.mouseOutField(event, this);" onclick="if (window.sfPage && window.sfPage.hasRun) sfPage.clickField(event, this);" onmouseover="if (window.sfPage && window.sfPage.hasRun) sfPage.mouseOverField(event, this);" class="inlineEditWrite" style="display:block" id="cust_contact_ilecell">
<span id="cust_contact_ileinner">
<a href="https://XXXXXXXX" id="lookup003" onblur="LookupHoverDetail.getHover('lookup003').hide();" onfocus="LookupHoverDetail.getHover('lookup003', '/003/m?retURL=%2Fapr%2FForceOrderInLineEditPage%3Fid%3Da1bWzo%26sf.override%3D1&amp;isAjaxRequest=1&amp;nocache=1344333834626').show();" onmouseout="LookupHoverDetail.getHover('lookup003').hide();" onmouseover="LookupHoverDetail.getHover('lookup003', '/003/m?retURL=%2Fapr%2FForceOrderInLineEditPage%3Fid%3Da1bWzo%26sf.override%3D1&amp;isAjaxRequest=1&amp;nocache=1344333834626').show();">
Joey Tribbiani</a>
</span></span></span></td>

在鼠标悬停时,它会显示一个可用于单击的图像。但我无法找到相同的定位器,因为它与“类”相关联。
感谢

0 个答案:

没有答案