如何确认我的链接标题属性已指定的值? [英] How to verify that my link title attribute has specified value?

查看:173
本文介绍了如何确认我的链接标题属性已指定的值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个链接的地方我的网页上,让我们这样说。

I have a link somewhere on my page, let say like this

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

如何确认,我的链接标题属性有我的标题信息的价值?

How to verify, that my link title attribute has 'my title message' value?

推荐答案

Assertattribute命令的使用进行验证,请检查该code。

Assertattribute command use to verify it, please check this code.

assertattribute  | title = my title message@href | http://example.com
assertattribute  | link=my link label@href       | http://example.com

这篇关于如何确认我的链接标题属性已指定的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆