Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geckodriver freezes after closing a popup window #818

Closed
PascalGit1 opened this issue Jul 11, 2017 · 12 comments
Closed

Geckodriver freezes after closing a popup window #818

PascalGit1 opened this issue Jul 11, 2017 · 12 comments

Comments

@PascalGit1
Copy link

PascalGit1 commented Jul 11, 2017

Platform: Windows 7
Firefox: 53
Selenium: 3.4.0
Geckodriver 0.18 (tried previous versions aswell)

When i close a popup window using window.close it freezes the driver and i cannot perform :
driver.switchTo().window(parentWindowHandler);
To get back to the main window

Error log:

499780716017	geckodriver	INFO	geckodriver 0.18.0
1499780716026	geckodriver	INFO	Listening on 127.0.0.1:40600
1499780718742	Marionette	WARN	TLS certificate errors will be ignored for this session
jul 11, 2017 3:45:18 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
are we in?
2147483652
2147483666
[GPU 8300] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[GPU 8300] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 9624] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 9624] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Tried to run command without establishing a connection
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'LTPLA102016', ip: '192.168.50.114', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\PASCAL~1.VAN\AppData\Local\Temp\rust_mozprofile.NAIywkJSmJt5, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=53.0, platformVersion=6.1, moz:processID=10776.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]
Session ID: a5fe29af-9ab1-4777-933a-2860b2609516
Failure in after hook:DriverHelper.ShutDown()
Message: org.openqa.selenium.SessionNotCreatedException: Tried to run command without establishing a connection
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'LTPLA102016', ip: '192.168.50.114', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\PASCAL~1.VAN\AppData\Local\Temp\rust_mozprofile.NAIywkJSmJt5, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=53.0, platformVersion=6.1, moz:processID=10776.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]
@andreastt
Copy link
Contributor

Did you try this with Firefox nightly as well?

@PascalGit1
Copy link
Author

I have tried with Firefox nightly before although not recently, but the issue was there

@andreastt
Copy link
Contributor

We don’t develop against Firefox 53 anymore because it is an old Firefox version. All development happens against the HEAD of the tree, from which Firefox Nightly is built. It is always a good idea to report bugs having tested against the most recent version.

If you could test against Firefox Nightly and attach a trace-level log that would be most appreciated.

@PascalGit1
Copy link
Author

PascalGit1 commented Jul 12, 2017

Tried it both on nightly and latest version of firefox now and still the same problem occurs
trying to figure out now how to get a decent trace level log

1499847845334	geckodriver	INFO	geckodriver 0.18.0
1499847845341	geckodriver	INFO	Listening on 127.0.0.1:38795
1499847849200	Marionette	WARN	TLS certificate errors will be ignored for this session
jul 12, 2017 10:24:09 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
[GPU 9968] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[GPU 9968] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Tried to run command without establishing a connection
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'LTPLA102016', ip: '192.168.50.114', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\PASCAL~1.VAN\AppData\Local\Temp\rust_mozprofile.mpVy5gpvlpUa, rotatable=false, timeouts={implicit=0.0, pageLoad=300000.0, script=30000.0}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0.0, moz:accessibilityChecks=false, acceptInsecureCerts=true, browserVersion=53.0.2, platformVersion=6.1, moz:processID=11736.0, browserName=firefox, javascriptEnabled=true, platformName=windows_nt}]
Session ID: d40b2f92-887c-45e3-a10c-95bd8971e22e
jul 12, 2017 10:24:48 AM org.openqa.selenium.os.UnixProcess destroy
SEVERE: Unable to kill process with PID 13180
Failure in after hook:DriverHelper.ShutDown()

@mozilla mozilla deleted a comment from suvendu2016 Jul 12, 2017
@andreastt
Copy link
Contributor

According to your latest paste, you were still using Firefox 53: browserVersion=53.0.2

@PascalGit1
Copy link
Author

PascalGit1 commented Jul 12, 2017

Alright i tried it again with Firefox 54, that gave me the same errors.
But running with firefox Nightly it worked fine

I'm also running my test on a linux server, but i'm not sure if i can install Nightly on it

@PascalGit1
Copy link
Author

PascalGit1 commented Jul 18, 2017

These are the methods i use to switch to popup, while using chrome i have no problems:

	public void getWindow() {
		Set<String> handles = driver.getWindowHandles(); // get all window handles
		Iterator<String> iterator = handles.iterator();
		parentWindowHandler = iterator.next(); // The parent window is the top window
		while (iterator.hasNext()) {
			subWindowHandler = iterator.next();
		}
	}

	@When("^switch to popup$")
	public void switch_to_popup() throws Throwable {
		TimeUnit.SECONDS.sleep(1);
		getWindow();
		driver.switchTo().window(subWindowHandler);
	}

	@When("^switch to mainwindow$")
	public void switch_to_mainwindow() throws Throwable {
		getWindow();
		driver.switchTo().window(parentWindowHandler);
	}

@andreastt
Copy link
Contributor

We don’t develop against 54 either. Any chance you can test with Nightly (56)? It would also be useful with a trace-level log.

@PascalGit1
Copy link
Author

We don’t develop against 54 either. Any chance you can test with Nightly (56)? It would also be useful with a trace-level log.

Like i said it works on Nightly.
But i guess I shouldnt try and get it to work on 54

@whimboo
Copy link
Collaborator

whimboo commented Jul 20, 2017

This is just another dupe of issue #611, which I fixed in Firefox Nightly (56).

@whimboo whimboo closed this as completed Jul 20, 2017
@Fenici
Copy link

Fenici commented Oct 24, 2017

How to call firefox nightly in mac ?

@lock
Copy link

lock bot commented Aug 17, 2019

This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue.

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants