Beach Parasol

1,451 views

Published on

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

Published in: Technology
  • Be the first to comment

Beach Parasol

  1. 1. Beach Parasol Kris Gybels 2Rivers Don't get burned at the Seaside maandag 9 september 13
  2. 2. maandag 9 september 13
  3. 3. maandag 9 september 13
  4. 4. maandag 9 september 13
  5. 5. GUI-Testing Smalltalk-AJAX/SJAX web applications with Selenium Carsten Härle @ ESUG 2012 maandag 9 september 13
  6. 6. Selenium Remote Control Selenium WebDriver Proxy server + Javascript injection Native browser automation support (plugin, ...) ✔ ✘ maandag 9 september 13
  7. 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. 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. 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. 10. maandag 9 september 13
  11. 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. 12. maandag 9 september 13
  13. 13. maandag 9 september 13
  14. 14. maandag 9 september 13
  15. 15. Join! Porting: VisualWorks, Stephan Eggermont Squeak, Tobias Pape Your favorite Smalltalk, You Completing maandag 9 september 13
  16. 16. Demo Explicit & Implicit Waiting maandag 9 september 13
  17. 17. kris@yesplan.be maandag 9 september 13

×