我有一个无法解决的问题。
每个人都可以告诉我如何找到下一个显示的当前元素
<td style="width: 250; text-align:right" class="stData"> March 14 2014, 00:00 </td>
完全包含“2014年3月14日00:00”文字?
答案 0 :(得分:0)
答案 1 :(得分:0)
使用verifyText,verifyNotText方法验证文本是否存在于Selenium IDE。
verifyText(定位器,模式)
Arguments:
locator - an element locator
Returns:
the text of the element
Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.
verifyNotText(定位器,模式)
Arguments:
locator - an element locator
Returns:
the text of the element
Gets the text of an element. This works for any element that contains text. This command uses either the textContent (Mozilla-like browsers) or the innerText (IE-like browsers) of the element, which is the rendered text shown to the user.