如何使用RSpec测试输入标题/工具提示 [英] How to test for input title/tooltip with rspec
本文介绍了如何使用RSpec测试输入标题/工具提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用rspec测试输入的标题/工具提示?
How do you test for an input's title/tooltip with rspec?
我没有测试工具提示,直到我发现一些提示停止工作并且没有被其他测试捕获。 (必须添加一些内容,这样问题才能被接受)。
I wasn't testing for tooltips until I noticed a few stopped working and it wasn't caught by the other tests. (Had to add something so the question would be accepted)
推荐答案
如何:
find('#element-locator')['title'].should == 'Expected title'
这篇关于如何使用RSpec测试输入标题/工具提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文