因此,我的测试具有以下命令目标值:
store attribute
id=loadGameButton
*visible*
试图查找id = loadGameButton ...失败:16:58:58
隐式等待在30000毫秒后超时
我尝试过此How to check if a style has been applied in Selenium IDE而这个Selenium IDE cannot find ID
store attribute
css=#loadGameButton@style
*inline*
store attribute
css=[id='loadGameButton']
*inline*
但也不起作用:它总是返回OK,而与我要检查的内容不对应。
https://github.com/Areso/1255-burgomaster/tree/master/selenium-ide
store attribute不检查属性值,它只是保存所选元素的值。要检查它,您应该使用assert
或verify
命令。