Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to repeat Selenium test script forever

I need to re-run my Selenium test script for unlimited number of times (infinite loop) - how I do that and what language should I use ?

thanks

like image 277
zac Avatar asked May 11 '26 00:05

zac


2 Answers

Selenium supports lots of programming languages. See here for the full list:

http://seleniumhq.org/about/platforms.html#programming-languages

Just pick one of them and write an infinite loop that does what you need.

You could also use the Selenium Firefox plugin to do an initial recording of your script and then convert it to your language of choice.

like image 94
Shane Bell Avatar answered May 13 '26 19:05

Shane Bell


Have a look at http://51elliot.blogspot.com/2008/02/selenium-ide-goto.html

A script you can add to selenium and offers looping and if/then

like image 43
Joel Box Avatar answered May 13 '26 20:05

Joel Box



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!