java - Tabs getting opened automatically -
new tabs getting opened after executing quit() function in selenium webdriver. happens browsers( chrome, ie, firefox). have tried terminating process in eclipse , tried killing javaw.exe task manager. still issue persists. solutions or workarounds
public static string quit() throws exception { try { application_logs.info("executing keyword quit"); driver.quit(); wbdv.quit(); application_logs.info("browser closed"); result="driver closed"; return "pass"; } catch(exception t) { application_logs.info("error while generating quit -" + object + t.getmessage()); result = t.getmessage(); throw new exception("exception raised in function :quit"); } }
Comments
Post a Comment