Problem with Alert in the Selenium IDE

后端 未结 2 1385
独厮守ぢ
独厮守ぢ 2021-01-25 14:09

How can I do to verify or assert an alert with a message that contains a variable in this text?

For example, I have to capture a alert with this message: Answer numbe

2条回答
  •  孤独总比滥情好
    2021-01-25 14:51

    You could use getAlert:

    "Retrieves the message of a JavaScript alert generated during the previous action, or fail if there were no alerts."

提交回复
热议问题