From IDE to Selenium 2

Posted: April 22nd, 2010 | Author: Dave | Filed under: Events | Tags: , , , , | 5 Comments »

Here are the slides from my ‘From IDE to Selenium 2′ talk that I gave at the second London Selenium Users meetup. Slides from the other talks to follow.

View more presentations from davehunt82.

Full project containing Selenium IDE test script, Selenium 2 Java TestNG tests (including dependancies), and slides available in this public Subversion repository.


5 Comments on “From IDE to Selenium 2”

  1. 1 Gergely said at 11:36 am on April 22nd, 2010:

    Hi Dave! ( Dave is it? :$ )

    I just have a few questions regarding selenium 2.

    Could you show me some example how to use it now with TestNG? Do i still use selenium or WebDriver is enough? Does that mean Selenium is out of the view and webdriver will overtake everything? How would a test farmework now look like? And what about flash-selenium? Will it still work? Will it work with normal Firefox without the need to use firefoxproxy?

    Thanks for the help you can provide!!! Sorry for that many questions..
    Gergely.

  2. 2 Dave said at 12:59 pm on April 22nd, 2010:

    Hi Gergely. Wow – lots of questions, hopefully I can help..!

    For examples of running Selenium 2 with TestNG I recommend checking out my demo project from my public Subversion repository at http://svn.blargon7.com/public/ldnse2 to start with. I’ve also posted before with Selenium 2 examples here.

    It’s best to think of WebDriver as being part of Selenium 2 rather than ‘overtaking everything’. The two projects are in the process of merging, and there’s plenty of features from each that will be included in the final release of Selenium 2.

    I know there is work to improve Flash support in some of the Selenium projects, but unfortunately this is somewhere I have little or no experience – my best suggestion would be to ask in the user groups. I’d be fairly confident in saying that most things you can do currently will be supported in some way in Selenium 2.

  3. 3 Gergely said at 1:06 pm on April 22nd, 2010:

    Thanks for the prompt reply!

    http://svn.blargon7.com/public/ldnse2/src/demo/ – is this the one yes?

    Cool! I will try to use them booth then. It’s interesting to see how they are merged together.

    Yeah i saw your previous example and i found it rather cool. I guess i’m just a bit afraid :) Because i don’t really see through everything right now. And how i will use it and how it will work. I can see how i can benefit from a lot of things from webdriver that is for sure.

    But unfortunately what i need the most would be the flash part. It works fine just it needs to use a *firefoxproxy because it does not work with firefox 3.5 or so.

    I hope that gets fixed.

    Thanks again for the answers and i will take a look your demo. It will give me a good idea on how to design a test framework from scratch :)

  4. 4 Jovi said at 2:48 am on March 20th, 2011:

    Hi Dave,

    We are in the progress of migration our framework from selenium 1 to 2, and I have read through the example you list above. As far as I know, if I want to totally make sure of Selenium 2.0 (WebDriver interface and its performance enhancement for IE, etc), I need to refactor my framework with changing the legacy Selenium class with WebDriver interface (using findelement method via By, etc…), instead of using WebDriver backed Selenium, because the latter one is just help to do a transparent migration for API, correct?

    Thanks,
    -Jojvi

  5. 5 Dave said at 2:15 pm on April 13th, 2011:

    Hi Jojvi,

    Sorry for the delay in responding. You are correct that you will want to modify your tests to adhere to the new API to take full advantage of Selenium 2.0, the WebDriver Backed Selenium is simply a way of using the improved browser drivers with the 1.x API and should only be used as the first step in a managed migration.

    I hope this answers your question,
    Dave


Leave a Reply