1

我的页面上有一个链接,可以这样说

<a href="http://example.com" title="my title message">my link label</a>

如何验证我的链接标题属性是否具有“我的标题消息”值?

4

3 回答 3

4

Assertattribute 命令用于验证它,请检查此代码。

assertattribute  | title = my title message@href | http://example.com
assertattribute  | link=my link label@href       | http://example.com
于 2013-03-21T08:46:00.227 回答
1

从 Selenium IDE 使用这个:

command         | target                   | value
-------------------------------------------------------------
assertAttribute | link=my link label@title | my title message
于 2013-02-26T16:00:00.730 回答
0

试试这样。

命令:验证标题

目标:我的标题信息

此命令会将实际页面标题与命令目标中给出的文本进行比较,如果两者相同,则不会显示错误,否则将显示错误

谢谢你...

于 2013-02-27T07:35:37.140 回答