SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Selenium test doesn't work in windows 7 #920

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 920

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
test works on ubuntu for example.
I see on windows:
Testcase: shouldShowTheCurrentChannelNameWhenChangeChannelSelected took 12,281 sec
    Caused an ERROR
element.ownerDocument.body is undefined
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.6.0_17'
Driver info: driver.version: remote
org.openqa.selenium.WebDriverException: element.ownerDocument.body is undefined
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.6.0_17'
Driver info: driver.version: remote
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:327)
    at org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:191)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:186)
    at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:67)
    at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:42)
    at $Proxy10.sendKeys(Unknown Source)
    at se.dreampark.test.views.RemoteControlImpl.pressArrowUp(RemoteControlImpl.java:49)
    at se.dreampark.test.views.TaHomeView.showMainMenu(TaHomeView.java:25)
    at se.dreampark.test.views.TaMainMenuView.givenMainMenuView(TaMainMenuView.java:52)
    at se.dreampark.test.views.TaTVProgramDayFlowView.givenTaTVProgramDayFlowView(TaTVProgramDayFlowView.java:53)
    at se.dreampark.test.EpgMagazineViewTest.shouldShowTheCurrentChannelNameWhenChangeChannelSelected(EpgMagazineViewTest.java:18)

Testcase: shouldShowTheStartStopTimeWhenChangeProgramSelected took 12,488 sec
    Caused an ERROR
element.ownerDocument.body is undefined
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.6.0_17'
Driver info: driver.version: remote
org.openqa.selenium.WebDriverException: element.ownerDocument.body is undefined
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version:
'1.6.0_17'
Driver info: driver.version: remote
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:94)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:327)
    at org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:191)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:186)
    at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:67)
    at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:42)
    at $Proxy10.sendKeys(Unknown Source)
    at se.dreampark.test.views.RemoteControlImpl.pressArrowUp(RemoteControlImpl.java:49)
    at se.dreampark.test.views.TaHomeView.showMainMenu(TaHomeView.java:25)
    at se.dreampark.test.views.TaMainMenuView.givenMainMenuView(TaMainMenuView.java:52)
    at se.dreampark.test.views.TaTVProgramDayFlowView.givenTaTVProgramDayFlowView(TaTVProgramDayFlowView.java:53)
    at se.dreampark.test.EpgMagazineViewTest.shouldShowTheStartStopTimeWhenChangeProgramSelected(EpgMagazineViewTest.java:47)

What version of the product are you using? On what operating system?
Operating system: Windows 7. 
Selenium web driver 2.0 alpha 4.

Please provide any additional information below.

Reported by trubadurstoffe on 2010-10-26 09:09:43

lukeis commented 8 years ago
Please try this with the latest release, 2.0a6.

Reported by dawagner on 2010-10-26 15:03:04

lukeis commented 8 years ago
I just moved to Win7 64 bit, and am trying Selenium 2.0a6. 2.0a5 worked fine, but I
was on XP at that time. Basically nothing worked when I was trying to get to Google
through our company proxy that requires authentication. I was finally able to get the
Chrome driver working, if I specified where Chrome was installed, which I didn't have
to do under XP. For IE, which is 64 bit, I'm getting that something is trashing the
default search provider. For Firefox I've tried several fixes to get it to recognize
the proxy settings, none seem to work, this is using 32 bit Firefox.
I hope this doesn't count as just a "me too"

Reported by mmormando on 2010-10-27 14:22:27

lukeis commented 8 years ago
I work at the same place as the original reporter. 
Some update on the issue:
We have upgraded to 2.0 b1 version now and tried running our test suite on Windows
XP with FirefoxDriver. We get the same error as the original, see below. 
The error message says "a.ownerDocument.body is undefined"
Question: Can this be a result of that we are not using HTML, but SVG, which has no
BODY element in the DOM?
However most developers here have either Ubuntu or Mac OSX (including me), and they
don't get this error.  
Everybody use the FirefoxDriver. 

The big trouble is that because of this issue no developers using Windows PC's are
able to run our growing suite of selenium tests. 

System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.6.0_20'
Driver info: driver.version: RemoteWebDriver
org.openqa.selenium.WebDriverException: a.ownerDocument.body is undefined
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version:
'1.6.0_20'
Driver info: driver.version: RemoteWebDriver
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:395)
    at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:235)
    at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:80)
    at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:42)
    at $Proxy10.sendKeys(Unknown Source)

Reported by thomas.gronwall on 2010-12-29 09:46:41

lukeis commented 8 years ago
Can you provide some more details about the SVG-ness of the page? A static file that
will reproduce the problem would be great.  

Reported by jari.bakken on 2011-01-27 13:01:03

lukeis commented 8 years ago
Hi there,
I have been using 2.0a7 so far and have migrated to  2.0b1. Since then I have been
facing issues with running WebDriver on Win 7.

When I run the same set of tests on Win Xp or ubuntu, the tests run fine. 

Driver info: driver.version: RemoteWebDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:395)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:183)
    at org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:200)
    at org.openqa.selenium.By$1.findElement(By.java:66)
    at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:175)

Reported by r.navaneeth on 2011-01-31 07:35:46

lukeis commented 8 years ago
Closing issue with status NeedsClarification for > 2 months.

Reported by jari.bakken on 2011-07-04 14:39:46

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:11:02