I know method getWindowHandles()
return un-ordered Set.
is there any best practice to handling this?
It not a big deal when I have two tab, but I got trouble when I have more than 2 tab open and use toArray()[index]
to move between tab because everytime run test, index are different eventhought new tab opened with the same steps.
Is there any possibilities to return index in sequence (based on timestamp the new tab are openen, maybe?) to guarantee that i can move to specific tab?