Unable to run tests on Grid with windows 7

178 views
Skip to first unread message

James

unread,
Jul 19, 2011, 7:48:35 PM7/19/11
to seleniu...@googlegroups.com
I'm receiving various errors while trying to run tests. I'm using Java Service Wrappers to fire up my hub and nodes, so not sure if the issue lies there or elsewhere.  In my environment I have my hub and 1 RC and 1 WD running on a Windows 7 box and 1 WD running on an XP box. They come up seemingly fine and I can run simple tests with firefox, but only when the DesiredCapabilities only include browserName.  When setting Platform = WINDOWS or XP (case doesn't seem to matter), I receive the following error (same for all browsers)

org.openqa.selenium.WebDriverException: cannot find : {platform=WINDOWS, browserName=firefox}

Build info: version: '2.0.0', revision: '12817', time: '2011-07-14 23:50:51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'

Driver info: driver.version: RemoteWebDriver

.

.

.


Secondly, trying to run Chrome doesn't seem to work.  I've downloaded the ChromeDriver and updated my path variable to include it, but still getting the following error(same when setting system property).


org.openqa.selenium.WebDriverException: The path to the chromedriver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://code.google.com/p/chromium/downloads/list

Build info: version: '2.0.0', revision: '12817', time: '2011-07-14 23:50:51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'

Driver info: driver.version: RemoteWebDriver

.

.

.


Finally, trying to run opera with 2.1.0 is giving the following error


org.openqa.selenium.WebDriverException: Unrecognized Windows Sockets error: 0: JVM_Bind

Build info: version: '2.0.0', revision: '12817', time: '2011-07-14 23:50:51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'

Driver info: driver.version: RemoteWebDriver

.

.

.


Is Selenium 2 compatible with Windows 7 and/or Java service wrappers?

François Reynaud

unread,
Jul 20, 2011, 6:09:28 AM7/20/11
to seleniu...@googlegroups.com
Hi,

the node do not have auto discovery of the platform. ( tracked with http://code.google.com/p/selenium/issues/detail?id=2042 )
Until that is done, you need to specify the platform when you're launching the node.

thanks,
François

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/TT7chEjX3foJ.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.

James Scharett

unread,
Jul 20, 2011, 7:22:35 AM7/20/11
to seleniu...@googlegroups.com
Platform is being specified along with version.  Here are the parameters I'm passing in the service wrapper.

wrapper.app.parameter.1 = org.openqa.grid.selenium.GridLauncher
wrapper.app.parameter.2 = -role webdriver
wrapper.app.parameter.3 = -hub http://10.10.59.67:4445/grid/register
wrapper.app.parameter.4 = -port 5580
wrapper.app.parameter.5 = -browser "browserName=opera, maxInstances=1, platform=XP"
wrapper.app.parameter.6 = -browser "browserName=chrome, maxInstances=3, platform=XP"
wrapper.app.parameter.7 = -browser "browserName=internet explorer, maxInstances=5, platform=XP"
wrapper.app.parameter.8 = -browser "browserName=firefox, maxInstances=5, platform=XP"

2011/7/20 François Reynaud <francois...@gmail.com>

François Reynaud

unread,
Jul 20, 2011, 7:46:05 AM7/20/11
to seleniu...@googlegroups.com
it doesn't trim.
Can you try without the space between the comma and platform ?

James Scharett

unread,
Jul 20, 2011, 9:38:33 AM7/20/11
to seleniu...@googlegroups.com
Ok, removing the spaces helped.  Thank you.  Also solved my issue with maxInstances.  But still no luck with chrome or opera.  Still getting same error with Chrome about not seeing the executable even though its set on the path and getting the following error when trying to run Opera

org.openqa.selenium.WebDriverException: Could not start the process : Cannot run program "C:\\.launcher\launcher-win32-i86pc.exe": CreateProcess error=14001, This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem

Build info: version: '2.1.0', revision: '12971', time: '2011-07-18 11:18:42'

System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_06'

Driver info: driver.version: OperaDriver

Build info: version: '2.0.0', revision: '12817', time: '2011-07-14 23:50:51'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_26'

Driver info: driver.version: RemoteWebDriver


Any ideas?


2011/7/20 François Reynaud <francois...@gmail.com>

Luke Inman-Semerau

unread,
Jul 20, 2011, 12:29:33 PM7/20/11
to seleniu...@googlegroups.com
I notice you're running 2.1.0 on winXP and 2.0.0 on mac... any reason to have the version mismatch of selenium?

James Scharett

unread,
Jul 20, 2011, 4:08:36 PM7/20/11
to seleniu...@googlegroups.com
selenium-java 2.1.0 wasn't available in the maven repos at the time.  Suppose I could have downloaded and installed manually.  Updating to 2.1.0 though does not seem to solve any of my outstanding issue with chrome,opera, or internet explorer

James Scharett

unread,
Jul 21, 2011, 5:24:20 PM7/21/11
to seleniu...@googlegroups.com
Ok, I got Opera partially working on XP by installing Microsoft Visual C++ 2010 Redistributable Package http://www.microsoft.com/download/en/details.aspx?id=5555.  However, it only seems to work maybe 30% of the time.  Keeping seeing error that Opera failed to repsond in a timely manner.  Still no luck with Opera in Win7.  What version of OperaDriver is packaged with selenium-server 2.1?


On Thu, Jul 21, 2011 at 3:08 PM, James Scharett <jdsch...@gmail.com> wrote:
Ok, so after some research, I found out that Windows doesn't updated the environment variables for the "Local System User" until you reboot the machine.  However, even with the reboot, I'm still seeing errors with IE/Chrome/Opera, though my Opera error has now changed to

org.openqa.selenium.WebDriverException: Unrecognized Windows Sockets error: 0: JVM_Bind

Build info: version: '2.1.0', revision: '12971', time: '2011-07-19 23:39:39'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_26'

Driver info: driver.version: RemoteWebDriver

.

.

.


As for Chrome, still seeing the webdriver.chrome.driver error even though its clearly defined on my Path and IE is complaining about the Protected Mode even though I've set them all to the same value.  This may be due to group privledges on the machine though and need to look into this further.


Anyone have any help they can privde with getting Chrome/Opera/Ie up and running with Grid 2?

James Scharett

unread,
Jul 21, 2011, 3:08:28 PM7/21/11
to seleniu...@googlegroups.com
Ok, so after some research, I found out that Windows doesn't updated the environment variables for the "Local System User" until you reboot the machine.  However, even with the reboot, I'm still seeing errors with IE/Chrome/Opera, though my Opera error has now changed to

org.openqa.selenium.WebDriverException: Unrecognized Windows Sockets error: 0: JVM_Bind

Build info: version: '2.1.0', revision: '12971', time: '2011-07-19 23:39:39'

System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_26'

Driver info: driver.version: RemoteWebDriver

.

.

.


As for Chrome, still seeing the webdriver.chrome.driver error even though its clearly defined on my Path and IE is complaining about the Protected Mode even though I've set them all to the same value.  This may be due to group privledges on the machine though and need to look into this further.


Anyone have any help they can privde with getting Chrome/Opera/Ie up and running with Grid 2?


Tibo

unread,
Aug 1, 2011, 10:24:04 PM8/1/11
to Selenium Users
Hi there,

I'm running my tests in the same configuration, with my node being
Windows 7. Grid is working well with firefox, but not with IE neither
Chrome (i got the same error about the executable path, if you found
the solution i'm very interested :) )
My main problem is with IE, which doesn't run at all my tests, because
of, i suppose, the self-signed certificate of my web site : the
instance of IE is well created, but does nothing... i think IE is
waiting for the user to accept to continue browsing this website...
"Continue to this website (not recommended). "
How can i by-pass this thing???

Thanks!


On Jul 22, 7:08 am, James Scharett <jdschar...@gmail.com> wrote:
> Ok, so after some research, I found out that Windows doesn't updated the
> environment variables for the "Local System User" until you reboot the
> machine.  However, even with the reboot, I'm still seeing errors with
> IE/Chrome/Opera, though my Opera error has now changed to
>
>    org.openqa.selenium.WebDriverException: Unrecognized Windows Sockets
> error: 0: JVM_Bind
>
> Build info: version: '2.1.0', revision: '12971', time: '2011-07-19 23:39:39'
>
> System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7',
> java.version: '1.6.0_26'
>
> Driver info: driver.version: RemoteWebDriver
>
> .
>
> .
>
> .
>
> As for Chrome, still seeing the webdriver.chrome.driver error even though
> its clearly defined on my Path and IE is complaining about the Protected
> Mode even though I've set them all to the same value.  This may be due to
> group privledges on the machine though and need to look into this further.
>
> Anyone have any help they can privde with getting Chrome/Opera/Ie up and
> running with Grid 2?
>
> On Wed, Jul 20, 2011 at 4:08 PM, James Scharett <jdschar...@gmail.com>wrote:
>
>
>
>
>
>
>
> > selenium-java 2.1.0 wasn't available in the maven repos at the time.
> >  Suppose I could have downloaded and installed manually.  Updating to 2.1.0
> > though does not seem to solve any of my outstanding issue with chrome,opera,
> > or internet explorer
>
> > On Wed, Jul 20, 2011 at 12:29 PM, Luke Inman-Semerau <
> > luke.seme...@gmail.com> wrote:
>
> >> I notice you're running 2.1.0 on winXP and 2.0.0 on mac... any reason to
> >> have the version mismatch of selenium?
>
> >> On Wed, Jul 20, 2011 at 6:38 AM, James Scharett <jdschar...@gmail.com>wrote:
>
> >>> Ok, removing the spaces helped.  Thank you.  Also solved my issue with
> >>> maxInstances.  But still no luck with chrome or opera.  Still getting same
> >>> error with Chrome about not seeing the executable even though its set on the
> >>> path and getting the following error when trying to run Opera
>
> >>> org.openqa.selenium.WebDriverException: Could not start the process :
> >>> Cannot run program "C:\\.launcher\launcher-win32-i86pc.exe": CreateProcess
> >>> error=14001, This application has failed to start because the application
> >>> configuration is incorrect. Reinstalling the application may fix this
> >>> problem
>
> >>> Build info: version: '2.1.0', revision: '12971', time: '2011-07-18
> >>> 11:18:42'
>
> >>> System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
> >>> java.version: '1.6.0_06'
>
> >>> Driver info: driver.version: OperaDriver
>
> >>> Build info: version: '2.0.0', revision: '12817', time: '2011-07-14
> >>> 23:50:51'
>
> >>> System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
> >>> '10.6.7', java.version: '1.6.0_26'
>
> >>> Driver info: driver.version: RemoteWebDriver
>
> >>> Any ideas?
>
> >>> 2011/7/20 François Reynaud <francois.reyn...@gmail.com>
>
> >>>> it doesn't trim.
> >>>> Can you try without the space between the comma and platform ?
>
> >>>> On Wed, Jul 20, 2011 at 12:22 PM, James Scharett <jdschar...@gmail.com>wrote:
>
> >>>>> Platform is being specified along with version.  Here are the
> >>>>> parameters I'm passing in the service wrapper.
>
> >>>>> wrapper.app.parameter.1 = org.openqa.grid.selenium.GridLauncher
> >>>>> wrapper.app.parameter.2 = -role webdriver
> >>>>> wrapper.app.parameter.3 = -hubhttp://10.10.59.67:4445/grid/register
> >>>>> wrapper.app.parameter.4 = -port 5580
> >>>>> wrapper.app.parameter.5 = -browser "browserName=opera, maxInstances=1,
> >>>>> platform=XP"
> >>>>> wrapper.app.parameter.6 = -browser "browserName=chrome, maxInstances=3,
> >>>>> platform=XP"
> >>>>> wrapper.app.parameter.7 = -browser "browserName=internet explorer,
> >>>>> maxInstances=5, platform=XP"
> >>>>> wrapper.app.parameter.8 = -browser "browserName=firefox,
> >>>>> maxInstances=5, platform=XP"
>
> >>>>> 2011/7/20 François Reynaud <francois.reyn...@gmail.com>
>
> >>>>>> Hi,
>
> >>>>>> the node do not have auto discovery of the platform. ( tracked with
> >>>>>>http://code.google.com/p/selenium/issues/detail?id=2042)
> >>>>>> Until that is done, you need to specify the platform when you're
> >>>>>> launching the node.
>
> >>>>>> thanks,
> >>>>>> François
>
> >>>>>> On Wed, Jul 20, 2011 at 12:48 AM, James <jschar...@tlcdelivers.com>wrote:
>
> >>>>>>> I'm receiving various errors while trying to run tests. I'm using
> >>>>>>> Java Service Wrappers to fire up my hub and nodes, so not sure if the issue
> >>>>>>> lies there or elsewhere.  In my environment I have my hub and 1 RC and 1 WD
> >>>>>>> running on a Windows 7 box and 1 WD running on an XP box. They come up
> >>>>>>> seemingly fine and I can run simple tests with firefox, but only when the
> >>>>>>> DesiredCapabilities only include browserName.  When setting Platform =
> >>>>>>> WINDOWS or XP (case doesn't seem to matter), I receive the following error
> >>>>>>> (same for all browsers)
>
> >>>>>>> org.openqa.selenium.WebDriverException: cannot find :
> >>>>>>> {platform=WINDOWS, browserName=firefox}
>
> >>>>>>> Build info: version: '2.0.0', revision: '12817', time: '2011-07-14
> >>>>>>> 23:50:51'
>
> >>>>>>> System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version:
> >>>>>>> '10.6.7', java.version: '1.6.0_24'
>
> >>>>>>> Driver info: driver.version: RemoteWebDriver
>
> >>>>>>> .
>
> >>>>>>> .
>
> >>>>>>> .
>
> >>>>>>> Secondly, trying to run Chrome doesn't seem to work.  I've downloaded
> >>>>>>> the ChromeDriver and updated my path variable to include it, but still
> >>>>>>> getting the following error(same when setting system property).
>
> >>>>>>> *
> >>>>>>> *

Krishnan Mahadevan

unread,
Aug 1, 2011, 10:54:27 PM8/1/11
to seleniu...@googlegroups.com
To handle this error ""Continue to this website (not recommended). ""

I think you are better off, adding the certificate manually to IE and then using IE

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"

James Scharett

unread,
Aug 2, 2011, 11:30:12 AM8/2/11
to seleniu...@googlegroups.com
Hey

I was able to get Chrome up and working on Windows 7 but not XP.  Had to correct my envirnoment variable for the Chrome Path.  The docs state to include the path to the binary such as C:\Grid\chromedriver.exe, but i only needed to set the path and not include the actual binary.  Then a reboot of the server to refresh the path var for the Local System user

Tibo

unread,
Aug 2, 2011, 7:18:26 PM8/2/11
to Selenium Users
You were right Krishnan, my certificate just had a typing error and so
was not usable for my site... now it's ok for IE.
Concerning Chrome, i tried with and without the binary in the path,
with and without final '\', i tried to put it in the code
( capabilities.setCapability("webdriver.chrome.driver", "C:\
\CDriver"); and System.setProperty("webdriver.chrome.driver","C:\
\CDriver"); ) , i tried to put the file in the same folder than
chrome.exe, but i always got the same error...
By the way, my Windows 7 is a VM, 64 bits. Do you think it can be the
problem?

Thanx
> ...
>
> read more »

Tibo

unread,
Aug 2, 2011, 7:24:25 PM8/2/11
to Selenium Users
I forgot a question : is it possible to specify to display the remote
browser? i would like to see it running...

Thanx
> ...
>
> read more »

James Scharett

unread,
Aug 8, 2011, 9:53:58 AM8/8/11
to seleniu...@googlegroups.com
If your using a java service wrapper, then you should be able to configure the service to Log on as the Local System User and set it to allow access to the desktop

Krishnan

unread,
Aug 8, 2011, 1:31:18 PM8/8/11
to Selenium Users
@Tibu,

http://code.google.com/p/selenium/wiki/ChromeDriver

I referred to the above link and was able to get Chrome up and running
on Windows 7 (64 bit machine).

Here's how it worked for me :
Chrome was installed @ C:\Users\krmahadevan\AppData\Local\Google\Chrome
\Application\chrome.exe (This is the default location for Windows
vista and above)

I then downloaded the chromedriver exe from http://code.google.com/p/chromium/downloads/list
Following was how I was instantiating my Chrome driver.


System.setProperty("webdriver.chrome.driver", "C:/Users/krmahadevan/
bluefin/selenium/chromedriver.exe");
ChromeDriver driver = new ChromerDriver();

and I was able to get it working.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages