Selenium 2 has been in beta phase for last few months. I would like to know learning’s if any of our us have analyzed/migrated from selenium 1 to selenium 2
- How much was the effort involved in terms of Changes# to accomodates 2 features. Methods/API changes#
- How much was perf improvements in terms of run time of tests in Selenium 2
- Any best practices/learning shared would be useful
Going through the transition myself. If you had Selenium 1 experience, Selenium 2 feels quite different actually. Here is my Selenium 2 pros/cons vs. Selenium 1 I see so far (I use Python so some of them are Python specific):
Pros:
Cons:
Other differences:
driver.execute_script("document.getElementById('dashboard_menu_navigation').show()")then click the menu itemdriver.find_element_by_link_text('Orders').click()Example (which throws
'WebElement' object has no attribute 'mouse_move_to'today):The Cons list seems longer but that is mostly if you are coming from Selenium 1. I do prefer the lightness and speed of Selenium 2 and despite the early code (using 2.0b4 at the time of writing) the whole thing is quite usable.
Hope to save someone some time…