If for whatever crazy reason I need to open 100 windows/tabs and navigate to 100 different links in them how do I do that? Can I simultaneously run certain tests in all 100 of them?
let's say I have an array ['a','b','c','d','e'], I need to test if some form works for all these values. How can I open 5 instances (or windows or whatever that can be controlled independently from the rest) and test them simultaneously? e.g.:
- find form's input text box,
- change the text value to one of the array's
- click submit button
- run certain assertion etc. and all that in parallel. Simultaneously testing all array values and not one by one
upd: I guess I can open multiple tabs using
browser.executeScript("window.open('https://angularjs.org/', 'tab" + i + "')")
yet that doesn't allow me to truly run tests in parallel, since I'm gonna have to jump from tab to tab, assuming all tabs open and loaded:
1) pick value from array 2) modify input box 3) click submit button 4) switch to next tab 5) repeat
Yes, this will still be faster than testing everything in one tab, looping through array and resetting the page every time, but I need to find a better way