How do I verify or assert an alert command with a message that contains a variable in the form of text?
For example, I have to capture an alert command with this particular message: Answer number (var id_answer) successfully accepted. id_answer is the variable and I don't know if this value should be present before the alert command is written. This alert is triggered for a flash command in a controller, for example (in Rails). And I need to simulate the click the button "ok" inside an alert window with a selenium command too. Is it possible?
Can anyone help me with this by providing an example with the complete syntax command in Selenium IDE?