operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Browser window not closing

Open antoin-m opened this issue 10 years ago • 2 comments

Hi,

I just ran into something strange, when I try to quit the WebDriver, the browser just closes every tab then reopens a new, empty one.

Here is how I instantiate my webdriver :

OperaOptions options = new OperaOptions();
options.setBinary("Path/To/Opera");
DesiredCapabilities capabilities = DesiredCapabilities.operaBlink();
capabilities.setCapability(OperaOptions.CAPABILITY, options);
capabilities.setCapability("opera.no_restart", true);
capabilities.setCapability("opera.no_quit", false);
driver = new OperaDriver(capabilities);

It happens when I call

driver.close();
driver.quit();

I am using OperaPortable 29.0 and Opera Webdriver 0.2.2.

antoin-m avatar May 26 '15 14:05 antoin-m

I got some similar issue here aka driver.quit() not working. I'm using selenium to drive local opera browser. Version: 30.0.1835.55472 - Checking for updates... Update stream: Stable System: Windows 7 64-bit (WoW64)

I open the browser with: webdriver_service = service.Service('C:/operadriver.exe') webdriver_service.start()

capability={"browserName":"opera","chromeOptions":{"args":["--use-fake-ui-for-media-stream","--ignore-certificate-errors"],"extensions":[],"binary":"C:/Program Files/Opera/opera.exe"}} driver1 = webdriver.Remote(webdriver_service.service_url, capability)

After some test action, I want to close the browser with: driver1.close() driver1.quit()

While .close() will close the tab in the browser, .quit() won't do anything and no error is reported.

pddpp avatar Jun 23 '15 18:06 pddpp

Same problem, quit() won't close the Opera browser

dventurino avatar Dec 20 '16 10:12 dventurino