Waiting for deleting cookies with webdriver? -
i have question deleting cookies using webdriver. should create additional code wait when deleting cookies finished or function me?
driver.manage().cookies.deleteallcookies();
i meam test not go next steps until cookies deleted?
in tests, driver.manage().deleteallcookies()
non blocking. got issues cookies deleted in middle of test.
so maybe want deleteallcookies()
in teardown method, or need wait after call:
driver.manage().deleteallcookies(); try { thread.sleep(5000); } catch (interruptedexception e) { e.printstacktrace(); }
Comments
Post a Comment