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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -