Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top