#SFSE: XPath Alternative for Browser Automation in IE
 

#SFSE: XPath Alternative for Browser Automation in IE

on

  • 2,036 views

 

Statistics

Views

Total Views
2,036
Views on SlideShare
2,036
Embed Views
0

Actions

Likes
0
Downloads
8
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

#SFSE: XPath Alternative for Browser Automation in IE #SFSE: XPath Alternative for Browser Automation in IE Presentation Transcript

  • XPath alternative for BrowserAutomation in IE
  • 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
  • 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 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?
  •   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.altom.ro/2010/10/selenium- xpath-and-internet-explorer.htmlReferences
  •   Selenium Meetup  Hara  Huynh KangCredits
  • ©   2011   Hara   /   confi den0Open House al  /   Page   14  
  • Appreciate in Public, Criticize in private… Recommend on LinkedIn!  ©   2011   Hara   /   confi den0My Takeaway! al  /   Page   15  
  • 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!!