In My case I have Many Frame In The APP Under Test And many popUp So I need Each time To go Into The Popup And return To original Windows : chrome :
ExemplePg.getWindowHandle();
driver.switchTo().defaultContent()
driver.switchTo().frame(sylobHomepg.get_FrameLevel2());
FireFox:
I need to add "defaultContent" with:
ExemplePg.getWindowHandle();
driver.switchTo().defaultContent();
driver.switchTo().frame(sylobHomepg.get_FrameLevel2());
Questions:
- Why I have this difference between chrome and Firefox??
- My job in Jenkins Work Well, many times and sometimes I have an error:
No such windows
?
Update: With chrome i am using just:
ExemplePg.getWindowHandle();
driver.switchTo().defaultContent();
driver.switchTo().frame(sylobHomepg.get_FrameLevel2());
Without default and its work and with firefox not I need to add switch default before switch frame.