Your SlideShare is downloading. ×
0
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
#SFSE: XPath Alternative for Browser Automation in IE
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

#SFSE: XPath Alternative for Browser Automation in IE

1,611

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
1,611
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. XPath alternative for BrowserAutomation in IE
  • 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. Automation in IE using Webdriver!!!Problem Statement
  • 4.   n00b  Lot has already been said…  Take with a pinch of saltCaution!
  • 5. IE9Caution!
  • 6.   Dynamic id  XPath  Handles XPath differently  Painfully SlowWhy?
  • 7.   Increase timeout  CSS  Alternate locatorsFix?
  • 8.   Nokogiri (Ruby) http://nokogiri.org/gem install nokogirirequire ‘nokogiri’iFix
  • 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.   Test execution time on FF3.6 using Webdriver = 3:00  Test execution time on IE9 using Webdriver = 4:50Benchmarks
  • 11.   HtmlCleaner - http://htmlcleaner.sourceforge.net/Alternatives
  • 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.   Selenium Meetup  Hara  Huynh KangCredits
  • 14. ©   2011   Hara   /   confi den0Open House al  /   Page   14  
  • 15. Appreciate in Public, Criticize in private… Recommend on LinkedIn!  ©   2011   Hara   /   confi den0My Takeaway! al  /   Page   15  
  • 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!!

×