开发者

How to submit form in loop in Selenium IDE

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 ye开发者_运维问答t.


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜