If you want stable automated web tests that don't consume all your time to maintain there are three areas that you need to master: using locators properly, synchronisation and waiting, and basic Object Orientation. This talk helps explain why honing your technical skills will allow you to become more effective, and shows how these three areas are handled when using WebDriver. We'll be covering topics such as when to use CSS locators to find elements and when to use XPath, through the difference between implicit and explicit waiting and why they matter, through to the Page Object pattern and how to apply it maintainably.
www.eurostarconferences.com
08448380779 Call Girls In Civil Lines Women Seeking Men
'Automated Web Testing: Traps for the Unwary' by Simon stewart
1. Automated Web Testing: Traps for
the Unwary
Simon Stewart, Selenium Project
Simon is best known as the lead of the Selenium
project and is the creator of the WebDriver APIs. He
has been the Tech Lead of Google’s Browser
Infrastructure team and has previously worked at
ThoughtWorks.
He loves code.
www.eurostarconferences.com
2. Join the conversation on Twitter
#esconfs
@esconfs
@shs96c
www.eurostarconferences.com
Continue the conversation with the speaker on Twitter after the show!
3. The Three Things You Need to Know
• How to find things
• How to wait for things
• How to keep your code
clean
http://www.flickr.com/photos/hfiguiere/4802869688/
21. Page Objects: Applying OO and DRY
to Test Code
• Reflect services offered
to users
• Are the only place with
deep knowledge of
page structure
• Can be composed
http://www.flickr.com/photos/dandiffendale/7891256336/
27. EuroSTAR Webinar Archive
Access almost 50 on-demand software testing webinars by the world's leading
testing experts. Topics include….
www.eurostarconferences.com
Agile, Automation, Test Management, Process Improvements, Risk-based Testing, Performance
Testing, Test Documentation, Cloud Testing, Session-based Testing, Weekend Testers
Visit the archive!
http://www.eurostarconferences.com/community/member/webinar-archive
@esconfs
#esconfs
28. The EuroSTAR Community.
Are you a member?
Did you know we have an online resource area with almost …
www.eurostarconferences.com
600 software testing presentations, 50 topical
webinars, over 40 videos and podcasts and 20 expert
eBooks
Do you know that membership is completely free and you can access these
premium testing resources anytime?
Join today!
http://www.eurostarconferences.com/community/
member
@esconfs
#esconfs
29. Call for Submissions to speak at the 2013 EuroSTAR
Conference is now open!
Speak at Europe’s #1 Software Testing Event
Theme: Questioning Testing Deadline for submissions February 13th
For more information http://www.eurostarconferences.com/speakers/conference-2013-call-
for-submissions
Editor's Notes
There are other mechanisms (such as link text), but we’ll not be paying attention to them for now.Note that although ids should be unique they very seldom are.
Three main reasons. it can be very brittle as the tools used to create them automatically tie the expression very closely to the page: it won’t survive a refactoring.Xpath engines work at different speeds. On IE there isn’t one available for an HTML DOM, so we use one written in JS, but JS on IE is slower than on any other browserDifferent browsers interpret HTML differently. The page structure may well be different in different browsers
Best way to find a parent node (“..”)Can be a useful way of narrowing down a subset of the DOM (eg: finding all TR elements when there are nested tables)
Whereas Xpath tends to only be used by testers, CSS selectors are often shared with UX and/or designers. They are less brittleSelectors located by machine tend to be far less brittle
What if you’re using JQuery?Also a really good way to implement “Gray Box” testing: have the app provide useful JS functions to grab bits of the UI. Gmonkey in Gmail provides access to key parts of the UI in this way.