Your SlideShare is downloading. ×
Beach Parasol
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Beach Parasol

1,092
views

Published on

Don't get burned at the Seaside …

Don't get burned at the Seaside
Kris Gybels, 2Rivers

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,092
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
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. Beach Parasol Kris Gybels 2Rivers Don't get burned at the Seaside maandag 9 september 13
  • 2. maandag 9 september 13
  • 3. maandag 9 september 13
  • 4. maandag 9 september 13
  • 5. GUI-Testing Smalltalk-AJAX/SJAX web applications with Selenium Carsten Härle @ ESUG 2012 maandag 9 september 13
  • 6. Selenium Remote Control Selenium WebDriver Proxy server + Javascript injection Native browser automation support (plugin, ...) ✔ ✘ maandag 9 september 13
  • 7. Selenium Remote Control Selenium WebDriver selenium.click("id=the_link"); WebElement element = driver.findElement(By.id("the_link")); element.click(); <a id="the_link" style="display: none" href="http://www.wikipedia.org"> Invisible Link to Wikipedia</a> maandag 9 september 13
  • 8. Selenium Remote Control Selenium WebDriver Selenium selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://localhost/"); selenium.start(); selenium.open("/page.html"); selenium.click("id=the_link"); More Object-Oriented API WebDriver driver = new FirefoxDriver(); driver.get("http://localhost/page.html"); WebElement element = driver.findElement(By.id("the_link")); element.click(); maandag 9 september 13
  • 9. WebDriver driver = new FirefoxDriver(); ChromeDriver IPhoneDriver AndroidWebDriver HtmlUnitDriver ... RemoteWebDriver Network connection WebDriver remoteDriver = ... driver := BPRemoteWebDriver new. selenium-server-standalone-2.31.0.jar maandag 9 september 13
  • 10. maandag 9 september 13
  • 11. BPRemoteWebDriver findElementByID: idString findElementsByXPath: xpathString getPageSource getKeyboard RemoteWebDriver WebElement findElementById(String using) List<WebElement> findElementsByXPath(String using) String getPageSource() Keyboard getKeyboard() WebElement String getAttribute(String name) void click() BPWebElement getAttribute: nameString click Keyboard void sendKeys(CharSequence... keysToSend) BPKeyboard sendKeys: Actions Actions doubleClick() Actions doubleClick(WebElement onElement) BPActions doubleClick doubleClick: maandag 9 september 13
  • 12. maandag 9 september 13
  • 13. maandag 9 september 13
  • 14. maandag 9 september 13
  • 15. Join! Porting: VisualWorks, Stephan Eggermont Squeak, Tobias Pape Your favorite Smalltalk, You Completing maandag 9 september 13
  • 16. Demo Explicit & Implicit Waiting maandag 9 september 13
  • 17. kris@yesplan.be maandag 9 september 13