Your SlideShare is downloading. ×
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
Selenium Interpreter
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

Selenium Interpreter

1,130

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,130
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
38
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. Interpreter Pattern Inside Selenium Core David Kemp, March 2008
  • 2. Talk Outline
    • Description of the Interpreter Pattern
    • Introduction to Selenium
    • Selenium’s Design
    • Selenium’s usage of Interpreter
  • 3. Interpreter Pattern
    • Represent instances of a grammar using object composition.
    • Note: It does NOT address parsing.
  • 4. Example from Kerievsky
  • 5. Example Continued…
    • Price < 43 AND NOT Colour = Blue
  • 6. Selenium
    • Web Testing Tool
    • Free and Open Source
    • Developed by ThoughtWorks and “Friends”
    • Recorders Exist
    • Can be driven by: Java, .NET, Perl, PHP, Python, Ruby, and HTML .
  • 7. Selenium Core
  • 8. Selenium Remote Control browser.open(&quot;http://www.google.com/webhp?hl=en&quot;); browser.type(&quot;q&quot;, &quot;hello world&quot;); browser.click(&quot;btnG&quot;); browser.waitForPageToLoad(&quot;5000&quot;); assertEquals(&quot;hello world - Google Search&quot;, browser.getTitle());
  • 9. Selenium Remote Control
  • 10. Grammar for assert, verify, store, and waitFor commands Example Commands: assertValue, assertNotValue, storeValue, waitForValue, waitForNotValue, assertText, assertNotText, storeText,…, assertAttribute, assertNotAttribute, storeAttribute… etc. etc. General Form: command = {action}{accessor} | {action} Not {accessor} action = assert | verify | store | waitFor accessor = value | text | attribute | title | visible | elementPresent | textPresent …
  • 11. Selenium HTML Runner
  • 12. Example Command Handler: assertNotValue

×