HI Mukesh,I followed your video on Handling hidden element. That helped me in overcoming on hurdle. Now I have another challenge.Scenario is :I click on Hidden button on first screen, which result in opening of a window but part of main screen.All the elements on that window are hidden.I am not able to find a solution on how to put wait after I click on button on first screen so that it should wait for elements on 2nd window to appear.As of now, I am not able to think anything apart from thread.sleepKindly help.
Just my own opinion, you can continue with the thread.sleep(), or use explicit wait. then switch to the new window.
February 2017 calendarFebruary calendar 2017March 2017 calendarMarch calendar 2017
You are missing the "WebDriver" interface when you are instantiating your browser. also, you might need to make it public and static.