1

I'm trying to make a conditional sentence with if I'm a bit stuck with how to do it in Selenium IDE.

I want it to be made as follows: For example, that once I have a coupon it will click cancel. If there is no coupon code is put my coupon code

| clickAndWait | link=Cancel |
| type | id=code | 123QA |
  • Aren't that two separate test-cases? One for the cancel and one for the coupon. Why do you want to combine them? – Niels van Reijmersdal Mar 8 '17 at 10:12
1

According to this SO answer you can use the Flow Control plugin listed on the official Selenium IDE download page.

Personally I would not use the Selenium IDE for complex website interactions, just as a proof of concept. Implementing Selenium with a programming language is much more flexible for complex cases.

Other reads:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.