英文:
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
请按照我在下面截图中提到的方法进行操作。
将存储变量的命令替换为“存储属性”。
英文:
Use approach as i mentioned in screenshot below.
Replace command where I store variable with 'store attribute'
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论