Migrating scripts from Selenium 1.0.5 to Selenium 2.0

38 views
Skip to first unread message

Shreya Prabhu

unread,
Dec 16, 2011, 5:58:51 AM12/16/11
to seleniu...@googlegroups.com
Hi All,

I am currently using Selenium RC 1.0.5 with TestNG for automating my application. The browser I am using is FireFox 3.6
I need to find out if we can migrate our code to Selenium 2.0. I do not have much experience in Selenium Framework and no idea about WebDrivers.

Can someone please guide me through this.

1) Does Selenium 2.0 support FireFox 3.6 ?
2) What changes do I need to do for this migration?
3) What are the advantages of using Selenium 2.0 over the current version I am using.

Please guide me on this.

Regards,
Shreya

Mike Riley

unread,
Dec 16, 2011, 1:15:20 PM12/16/11
to Selenium Users
1) Yes, I am using it with Firefox 3.6 and it works just fine. If you
are using Grid or Remote Control servers you will need to change how
you bring those up. The standalone server jar does it all as far as
that is concerned.

2) The code should be able to run just fine AFAIK. The Selenium 1.0
API is still there, although it is not being worked on any more, other
than an occasional bug fix, maybe. You can also consider switching to
WebDriver and using WebDriverBackedSelenium. That would mean only
your start up and ending code would be different and most (but not
quite all) of the Selenium 1.0 code would work unchanged.

3) The Webdriver support can help get you away from the issue of
JavaScript behavior that could affect how different browsers would
react to Selenium 1.0 methods, because it uses native events to better
simulate user interaction with the browser.

I am using the WebDriverBackedSelenium methods because my team is not
as used to using Java methodology and I think the WebDriver model has
a steeper learning curve. There is also an export filter for TestNG
using WebDriverBackedSelenium, so if you use the IDE to generate your
test code you are able to take advantage of it to help learn how to
use it.

Mike

Shreya Prabhu

unread,
Dec 17, 2011, 4:53:53 AM12/17/11
to seleniu...@googlegroups.com
Thanks so much for the detailed explanation Mike :)

Regards,
Shreya

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
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.


Chinmay Shepal

unread,
Mar 27, 2012, 1:29:11 PM3/27/12
to seleniu...@googlegroups.com
First I would like to say is Don't plan to migrate a whole framework.

WebDrivers has its own advantages you can easily google it. 
--
Thanks,
Chinmay Shepal

Reply all
Reply to author
Forward
0 new messages