selenium icon indicating copy to clipboard operation
selenium copied to clipboard

Selenium fetching wrong debug info with window 10

Open TARIFABBAS opened this issue 11 years ago • 5 comments

When the execution fails, selenium giving os name as windows 8.1 instead of windows 10 Message:org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. IELaunchURL() returned HRESULT 80070012 ('There are no more files.') for URL 'http://localhost:34164/' (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 26.29 seconds Build info: version: '2.47.1', revision: '411b314', time: '2015-07-30 02:56:46' System info: host: 'CTNDA126Sandeep', ip: '172.17.20.21', os.name: 'Windows 8.1' os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_20'*

TARIFABBAS avatar Aug 24 '15 05:08 TARIFABBAS

Lest anyone think otherwise, this issue is probably in the Java remote server code, not the IE driver code. The IE driver never returns the specific name of the OS.

jimevans avatar Aug 24 '15 12:08 jimevans

possibly related: #688

ddavison avatar Aug 24 '15 12:08 ddavison

Thank you for your support.

TARIFABBAS avatar Aug 24 '15 13:08 TARIFABBAS

no, this appears to be valid, no need to close :)

ddavison avatar Aug 24 '15 13:08 ddavison

os.name is one of the standard Java system properties: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html

The Selenium server is reporting Windows 8.1 b/c that's what Java is reporting: https://github.com/SeleniumHQ/selenium/blob/master/java/client/src/org/openqa/selenium/WebDriverException.java#L78

This is a bug in the JDK: https://bugs.openjdk.java.net/browse/JDK-8081573

jleyba avatar Aug 29 '15 16:08 jleyba