【问题标题】:Verify whether a validation message is appearing using Selenium IDE使用 Selenium IDE 验证是否出现验证消息
【发布时间】:2014-01-27 17:51:40
【问题描述】:

我想检查是否使用 Selenium IDE 出现验证消息。如果出现验证消息,则文本框应自动填充默认值。如果没有出现验证消息,则应执行其余步骤。

我试过这个:

verifyTextPresent | Target | validation message
gotoif |  | jump
--Other steps--
label | jump |

对于我的情况,我应该在 gotoif 的目标字段上给出什么。

【问题讨论】:

    标签: testing selenium automated-tests selenium-ide


    【解决方案1】:

    您需要在目标中放置一个验证消息元素。

    【讨论】:

    • 我在目标中添加了验证消息元素。现在,它显示一条错误消息,例如 [error] Unexpected Exception: SyntaxError: invalid regular expression flag b。文件名 -> chrome://flowcontrol/content/extensions/goto-sel-ide.js?1389327057686, lineNumber -> 129, columnNumber -> 12
    猜你喜欢
    • 2015-08-28
    • 1970-01-01
    • 2013-04-16
    • 2019-08-13
    • 2013-07-19
    • 1970-01-01
    • 2013-09-26
    • 2020-11-18
    • 2020-04-27
    相关资源
    最近更新 更多