简体   繁体   English

新的Selenium IDE,如何写一个带有存储属性的条件语句

[英]New Selenium IDE, how to write a conditional statement with stored attribute

I was able to store the alt value attribute.我能够存储 alt 值属性。 now i want to write a condition statement that says,现在我想写一个条件语句,

if the Stored attribute is "iwantthistextvalue" then true.如果 Stored 属性为“iwantthistextvalue”,则为 true。

this is what i am trying that is not working这就是我正在尝试但不起作用的方法

${x} === "iwantthistextvalue"

Use approach as i mentioned in screenshot below.使用我在下面的屏幕截图中提到的方法。

Replace command where I store variable with 'store attribute'用“存储属性”替换我存储变量的命令

在此处输入图像描述

Here is Selenium IDE code: if...else condition code这是 Selenium IDE 代码: if...else 条件代码

Side by side, you can see the original documentation of control flow from Selenium IDE.您可以并排查看来自 Selenium IDE 的控制流的原始文档。 That section describes all possible control flow & conditional commands.该部分描述了所有可能的控制流和条件命令。 Check this link, it is really very helpful: https://www.selenium.dev/selenium-ide/docs/en/introduction/control-flow检查这个链接,它真的很有帮助: https://www.selenium.dev/selenium-ide/docs/en/introduction/control-flow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM