1

I'm using Selenium IDE in Firefox and submiting a form. The problem is that the form can be sucesfull or unsuccesfull (random). When it's unsuccesfull it will show and error message (AJAX) and I need to try to submit the form again.

I would like to write a test which will be submiting the form until it will redirect me to success page (text present).

Can someone helps me with this? I didn't play with Selenium this way yet.

3
  • Why does the form randomly fail and show an error message? Commented Oct 22, 2009 at 8:47
  • It's testing environment of Datacash. This is returning statuses randomly, I can't change this. I want to place an order, datacash is contacted and it can return true or error id (fraud scoring, funds, blocked card,...) Commented Oct 22, 2009 at 8:49
  • You can use the flow control extension 51elliot.blogspot.com/2008/02/selenium-ide-goto.html I haven't used it a lot myself, but it should enable you to do what you need. Commented Oct 22, 2009 at 9:38

2 Answers 2

1

Here is an extension that adds full-fledged looping, conditional execution, and callable functions to Selenium IDE: SelBlocks.

Dave Hunt mentioned flowControl, which is a possibility. But besides higher-level functionality, a significant difference is that SelBlocks takes eval expressions (regular javascript), which might make checking AJAX status a bit easier.

Sign up to request clarification or add additional context in comments.

Comments

0

You can use selenium extension goto_sel_ide. This will enable flow control commands. Then you can use while command, and with help of this you can run script till you get success message. Let me know whether it is working for you or not

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.