New Selenium IDE,如何编写带有存储属性的条件语句

huangapple go评论83阅读模式
英文:

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

问题

我已经成功存储了 alt 值属性。现在我想编写一个条件语句,如下所示:

如果存储的属性为 "iwantthistextvalue",则为真。

以下是我正在尝试但不起作用的代码:

${x} === "iwantthistextvalue"
英文:

I was able to store the alt value attribute. now i want to write a condition statement that says,

if the Stored attribute is "iwantthistextvalue" then true.

this is what i am trying that is not working

${x} === "iwantthistextvalue"

答案1

得分: 1

请按照我在下面截图中提到的方法进行操作。

将存储变量的命令替换为“存储属性”。

New Selenium IDE,如何编写带有存储属性的条件语句

英文:

Use approach as i mentioned in screenshot below.

Replace command where I store variable with 'store attribute'

New Selenium IDE,如何编写带有存储属性的条件语句

答案2

得分: -1

这是Selenium IDE代码:if...else条件代码

并排,您可以查看来自Selenium IDE的控制流原始文档。该部分描述了所有可能的控制流和条件命令。请查看此链接,它确实非常有帮助:
https://www.selenium.dev/selenium-ide/docs/en/introduction/control-flow

英文:

Here is Selenium IDE code: if...else condition code

Side by side, you can see the original documentation of control flow from 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

huangapple
  • 本文由 发表于 2020年8月10日 20:50:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/63340574.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定