Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
XPath alternative for BrowserAutomation in IE
Mridul BansalGraduate Student, Software Engineering (Dec’11)San Jose State UniversitySoftware QA Intern @Citrix, CASoftwar...
Automation in IE using         Webdriver!!!Problem Statement
  n00b  Lot   has already been said…  Take   with a pinch of saltCaution!
IE9Caution!
  Dynamic     id  XPath  Handles     XPath differently  Painfully   SlowWhy?
  Increase    timeout  CSS  Alternate   locatorsFix?
  Nokogiri    (Ruby)   http://nokogiri.org/gem install nokogirirequire ‘nokogiri’iFix
Earlier@driver.find_element(:xpath => "//span[contains(., ABC)]").click                                   Nowsrc = "<div i...
  Test    execution time on FF3.6 using Webdriver = 3:00  Test    execution time on IE9 using Webdriver = 4:50Benchmarks
  HtmlCleaner   -   http://htmlcleaner.sourceforge.net/Alternatives
  http://nokogiri.org/  http://php.jglobal.com/blog/?   tag=selenium  http://www.qaautomation.net/?p=216  http://blog....
  Selenium   Meetup  Hara  Huynh   KangCredits
©	               2011	               Hara	                       /	               confi             den0Open House         ...
Appreciate in Public,    Criticize in private…    Recommend on LinkedIn!                                   ©	            ...
Mridul BansalGraduate Student, Software Engineering (Dec’11)San Jose State UniversitySoftware QA Intern @Citrix, CASoftwar...
Upcoming SlideShare
Loading in …5
×

#SFSE: XPath Alternative for Browser Automation in IE

2,103 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

#SFSE: XPath Alternative for Browser Automation in IE

  1. 1. XPath alternative for BrowserAutomation in IE
  2. 2. Mridul BansalGraduate Student, Software Engineering (Dec’11)San Jose State UniversitySoftware QA Intern @Citrix, CASoftware Test Development Intern @Hara, CASoftware Test Engineer @Covelix, Indiahttp://www.linkedin.com/in/mridulbansalAbout Me
  3. 3. Automation in IE using Webdriver!!!Problem Statement
  4. 4.   n00b  Lot has already been said…  Take with a pinch of saltCaution!
  5. 5. IE9Caution!
  6. 6.   Dynamic id  XPath  Handles XPath differently  Painfully SlowWhy?
  7. 7.   Increase timeout  CSS  Alternate locatorsFix?
  8. 8.   Nokogiri (Ruby) http://nokogiri.org/gem install nokogirirequire ‘nokogiri’iFix
  9. 9. Earlier@driver.find_element(:xpath => "//span[contains(., ABC)]").click Nowsrc = "<div id=""treeForm:tree:childs"">#{@driver.page_source()}</ div>"curr_id = Nokogiri::HTML(src).xpath("//div[@id = treeForm:tree:childs]/div[1]/div[2]/table[11]").attribute("id")@driver.find_element(:id, curr_id).clickHow?
  10. 10.   Test execution time on FF3.6 using Webdriver = 3:00  Test execution time on IE9 using Webdriver = 4:50Benchmarks
  11. 11.   HtmlCleaner - http://htmlcleaner.sourceforge.net/Alternatives
  12. 12.   http://nokogiri.org/  http://php.jglobal.com/blog/? tag=selenium  http://www.qaautomation.net/?p=216  http://blog.altom.ro/2010/10/selenium- xpath-and-internet-explorer.htmlReferences
  13. 13.   Selenium Meetup  Hara  Huynh KangCredits
  14. 14. ©   2011   Hara   /   confi den0Open House al  /   Page   14  
  15. 15. Appreciate in Public, Criticize in private… Recommend on LinkedIn!  ©   2011   Hara   /   confi den0My Takeaway! al  /   Page   15  
  16. 16. Mridul BansalGraduate Student, Software Engineering (Dec’11)San Jose State UniversitySoftware QA Intern @Citrix, CASoftware Test Development Intern @Hara, CASoftware Test Engineer @Covelix, Indiahttp://www.linkedin.com/in/mridulbansalThanks for bearing!!

×