Selenium: Looping concept, how to implement loop in selenium script?

In this video we will see how to apply loops in order to maintain the code quality. When same action is expected to perform again and again instead of writing same code multiple times better to use loop.

I hope you like this video. For any questions, suggestions or appreciation please contact us at: or email at:


driver.get("web page url");


for(int i=1;i<6;i++) 

Leave a Reply