Selenium IDE-如何检查元素在测试用例中是否具有某些[style]属性?

问题描述 投票:0回答:1

因此,我的测试具有以下命令目标值:

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

selenium firefox selenium-ide
1个回答
0
投票

store attribute不检查属性值,它只是保存所选元素的值。要检查它,您应该使用assertverify命令。

© www.soinside.com 2019 - 2024. All rights reserved.