How to run test for multile viewport
Mahalingam — Mar 09, 2018 05:48PM UTC
I need to run all the URL under my test for 3 viewports. can it be done in single script using loop. The URL is going to be same for all the viewport. I am using excel to pass the list of URLs.
1 Community Answers
Sophie Tagar - Mar 09, 2018 at 08:20PM UTC
Thanks for reaching out.
Sure you can use a loop, you can send the viewport size as a parameter to a function (in this function you’ll do eyes.open, take screenshots, and eyes.close).
Also, take a look at this example which runs in parallel with Junit to run over different viewport sizes.
Let me know if you have any more questions.