Following error i get :
Exception in thread "main" java.util.NoSuchElementException
at java.util.HashMap$HashIterator.nextNode(Unknown Source)
at java.util.HashMap$KeyIterator.next(Unknown Source)
at p1.TimesOFWindow.main(TimesOFWindow.java:35)
Even if order is not der in hashset : i thought things would work as in attachment.
[b:2kq71p15]But its not working.Need help sir.[/b:2kq71p15]
Sir , am suppose to switch to childwindow.... but without windowId .How do i switch to that window ?
So am using String [b:3kopgpvt]childwin=It.next()[/b:3kopgpvt] to extract the windowID.
How do i make It.next() work?
please suggest how do i switch to childwindow other than driver.switchTo.window(<windowID>)
Am getting exceptions bcoz... It.next() is returning null sir.
Now how do i switch to a window, whose winID is null ?:O
when you iterate you have to use try catch statement inside iterator loop so you don't get any exception.