internet explorer - Selenium tests open unnescessary popups -
i'm running selenium test test application. login application,check ui text , log off. when log off, current browser gets closed , 1 more browser opens popup webpage viewing trying close window.do want continue.
manually when log off application,it redirects me login page on same browser window. seelnium tests,it closes current browser , opens browser popup.
i tried chooseokonnextconfirmation method select yes button on popup,but not clicking. how can avoid generating these popups i'm using selenium jar 2.30(rc) ie 8 ,windows xp
at end of test, add...
selenium 1 solution:
- use
selenium.stop();
selenium 2 solution:
- use
webdriver.quit();
both of these methods kill open browser windows, , prevent happening.
Comments
Post a Comment