una​ble to launch the *chrome and *iehta by using selenium server standalone version 2.5.0

123 views
Skip to first unread message

Sy QA

unread,
May 15, 2012, 5:45:41 AM5/15/12
to seleniu...@googlegroups.com
Hi all,
 
Setup Configuration:
                          Selenium Version: 2.5.0
                          Browser: Firefox 12.0, IE9 and google chrome 18.0
                          Operating System : Windows 7 (64 bit)
                                                          Eclipse 3.7.2
 
Im very very new to QA and selenium, can someone PLEASE help with a very frustrating problem i've had for a week now. I'm trying to run a test case using junit. Whenever I use *chrome or *iehta on eclipse, a blank borwser is launched but the rest of the code does not get executed. When I use google chrome, RC gets launched, rest of the code gets executed and I get expected result didplayed in the console but the browser does not navigate to specified URL, attached error is displayed.
 
I'm using attached code in eclipse.
 
Please guide me before i kill myself :(
 
Thanks
 

 

error with googlechrome.jpg
mc1 code.txt

Mallikarjun Yalagi

unread,
May 15, 2012, 5:49:33 AM5/15/12
to seleniu...@googlegroups.com
selenium server is not started,so blank browser is opened,update the selenium server from 2.5.0 to 2.21.0.
 
Thanks&Regards
Mallikarjun Yalagi

 

 

--
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/-/MWion8Z_E3AJ.
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.

Mark Collin

unread,
May 15, 2012, 5:51:16 AM5/15/12
to seleniu...@googlegroups.com

First of all update to 2.21.0 you are using a very old version of Selenium that was released before FireFox 12, GoogleChrome 18 and the IE driver has been completely rewritten since 2.5.0.

--

Simon Latinwo

unread,
May 15, 2012, 5:52:15 AM5/15/12
to seleniu...@googlegroups.com
You are amazing Mallikarjun!!! Thanks

Simon Latinwo

unread,
May 15, 2012, 5:53:12 AM5/15/12
to seleniu...@googlegroups.com
Thanks a lot Mark, I'll do that right away.

Simon Latinwo

unread,
May 15, 2012, 6:18:37 AM5/15/12
to seleniu...@googlegroups.com
Thanks Mark and Mallikarjun, You guys are amazing, very much appreciated! I have been stuck on that for a week and now it works fine! Thanks you so much.

Simon

Mark Collin

unread,
May 15, 2012, 6:31:48 AM5/15/12
to seleniu...@googlegroups.com

Secondly, don’t use the old Selenium RC API.  It is deprecated and effectively dead.  Switch over to the new Webdriver API.

 

I’ve tweaked the code you supplied to use WebDriverBackedSelenium which is an interim solution to help people convert from the old Selenium RC API to the new WebDriver API.  Using WebDriverBackedSelenium you don’t need to start up any selenium server instances, you can just run the script.  Here it is:

 

https://gist.github.com/2700528

 

Now I would suggest you instead use WebDriver which would look like this:

 

https://gist.github.com/2700662

 

The above is just a direct translation of commands from selenium to WebDriver.  It looks a little more verbose but it very clear as to exactly what actions you are performing and the WebElements make it easy to perform additional commands  without having to reuse the locator.  Ideally you would create a page object for each of the pages which would simplify this even further, but I think a direct translation will be more useful to begin with.  For infop on page objects have a look at:

 

http://seleniumhq.org/docs/06_test_design_considerations.html#page-object-design-pattern

Mark Collin

unread,
May 15, 2012, 6:35:11 AM5/15/12
to seleniu...@googlegroups.com

Oh and notice I switched your code to extend SeleniumTestBase (which isn’t deprecated) instead of SeleniumTestCase.

Sy QA

unread,
May 15, 2012, 6:39:24 AM5/15/12
to seleniu...@googlegroups.com
Thanks mark, you've gone above and beyond....

I will follow your instructions right away.

Thanks again
Reply all
Reply to author
Forward
0 new messages