From IDE to Selenium 2
                 Dave Hunt
    http://seleniumexamples.com/blog/
            @SeleniumExample
Why Migrate?
Why Migrate?
More Power
Why Migrate?
More Power
             Faster
Why Migrate?
More Power
                  Faster
   Improved API
Why Migrate?
More Power
                  Faster
   Improved API

        Future Proof
Why Migrate?
     More Power                     Keyboard Interaction
                     iPhoneDriver
Control Browser Di...
Demonstration
Demonstration
    Selenium IDE
Emulating Selenium 1.x

WebDriver Backed Selenium

 ‣ Quickest way to upgrade
 ‣ Managed migration to new API
 ‣ Java only...
Selenium IDE Plugins
Selenium IDE Plugins

•   Simple to develop
Selenium IDE Plugins

•   Simple to develop

•   Simple to use
Selenium IDE Plugins

•   Simple to develop

•   Simple to use

•   Extensions
Selenium IDE Plugins

•   Simple to develop

•   Simple to use

•   Extensions

•   Formatters
Selenium IDE Plugins

•   Simple to develop

•   Simple to use

•   Extensions

•   Formatters

•   Locators (Coming soon!)
WebDriver Backed
    Formatters
Selenium IDE Plugin

‣ http://tinyurl.com/webdriver-backed
‣ http://tinyurl.com/webdriver-...
Demonstration
Demonstration
WebDriver Backed Formatters
The Next Steps
        •   Improving your tests
            using a programming
            language

        •   Keyboard...
Demonstration
Demonstration
  Free from Selenium IDE
And Finally...
Remove the
dependancy on
Selenium 1.x
entirely!
Demonstration
Demonstration
Completing the migration to Selenium 2
RESOURCES

‣ http://blargon7.com/
‣ http://svn.blargon7.com/public/ldnse2/
FEEDBACK

‣ http://www.meetup.com/seleniumlondo...
Thanks to:
@adamgoucher for his excellent work on
Selenium IDE, including the plugin API.
http://adam.goucher.ca/

@lisast...
Upcoming SlideShare
Loading in …5
×

From IDE to Selenium 2

8,263 views

Published on

My presentation of a suggested migration path from Selenium IDE to Selenium 2 given at the second London Selenium Users meetup event at Google UK.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,263
On SlideShare
0
From Embeds
0
Number of Embeds
4,123
Actions
Shares
0
Downloads
191
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Thank the event hosts, and the speakers for agreeing to present.
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Power: Selenium IDE has limitations (more later)
    Faster: Demo went from 6 seconds to 4
    API: Might take some getting used to, but worth it
    Future: Selenium 1.x might not be supported in the future
  • Demonstrate existing IDE script

  • Since version 1.0.4
    Plugin API developed by Adam Goucher
    Simple to use - just like IDE itself
    Custom extensions and formatters
    Custom locators planned for future
  • Since version 1.0.4
    Plugin API developed by Adam Goucher
    Simple to use - just like IDE itself
    Custom extensions and formatters
    Custom locators planned for future
  • Since version 1.0.4
    Plugin API developed by Adam Goucher
    Simple to use - just like IDE itself
    Custom extensions and formatters
    Custom locators planned for future
  • Since version 1.0.4
    Plugin API developed by Adam Goucher
    Simple to use - just like IDE itself
    Custom extensions and formatters
    Custom locators planned for future
  • Since version 1.0.4
    Plugin API developed by Adam Goucher
    Simple to use - just like IDE itself
    Custom extensions and formatters
    Custom locators planned for future
  • Available on Mozilla’s Addons site
    Repository on GitHub
  • Add-ons dialog
    Plugins tab
    Formatters tab
    Demonstrate exporting to Eclipse and running
  • Outside of the IDE you can use a full programming language: loops, conditions, etc.
    Improved keyboard interaction is a feature of Selenium 2
  • Add a loop to the test
    Change the mouse interaction to keyboard interaction - send keys to the text field

  • Demonstrate removing all Selenium 1.x emulation


  • From IDE to Selenium 2

    1. 1. From IDE to Selenium 2 Dave Hunt http://seleniumexamples.com/blog/ @SeleniumExample
    2. 2. Why Migrate?
    3. 3. Why Migrate? More Power
    4. 4. Why Migrate? More Power Faster
    5. 5. Why Migrate? More Power Faster Improved API
    6. 6. Why Migrate? More Power Faster Improved API Future Proof
    7. 7. Why Migrate? More Power Keyboard Interaction iPhoneDriver Control Browser Dialogs Faster Improved API Implicit Waits AndroidDriver HTMLUnitDriver Page Objects Future Proof
    8. 8. Demonstration
    9. 9. Demonstration Selenium IDE
    10. 10. Emulating Selenium 1.x WebDriver Backed Selenium ‣ Quickest way to upgrade ‣ Managed migration to new API ‣ Java only (for now)
    11. 11. Selenium IDE Plugins
    12. 12. Selenium IDE Plugins • Simple to develop
    13. 13. Selenium IDE Plugins • Simple to develop • Simple to use
    14. 14. Selenium IDE Plugins • Simple to develop • Simple to use • Extensions
    15. 15. Selenium IDE Plugins • Simple to develop • Simple to use • Extensions • Formatters
    16. 16. Selenium IDE Plugins • Simple to develop • Simple to use • Extensions • Formatters • Locators (Coming soon!)
    17. 17. WebDriver Backed Formatters Selenium IDE Plugin ‣ http://tinyurl.com/webdriver-backed ‣ http://tinyurl.com/webdriver-backed-src
    18. 18. Demonstration
    19. 19. Demonstration WebDriver Backed Formatters
    20. 20. The Next Steps • Improving your tests using a programming language • Keyboard interaction with Selenium 2
    21. 21. Demonstration
    22. 22. Demonstration Free from Selenium IDE
    23. 23. And Finally... Remove the dependancy on Selenium 1.x entirely!
    24. 24. Demonstration
    25. 25. Demonstration Completing the migration to Selenium 2
    26. 26. RESOURCES ‣ http://blargon7.com/ ‣ http://svn.blargon7.com/public/ldnse2/ FEEDBACK ‣ http://www.meetup.com/seleniumlondon/
    27. 27. Thanks to: @adamgoucher for his excellent work on Selenium IDE, including the plugin API. http://adam.goucher.ca/ @lisastarchild of Sleepy Robot 13 for allowing me to use photos of her models. http://lisastarchild.blogspot.com/

    ×