Presentación sobre FITNesse brindada a personal del CES (Centro de Ensayos de Software) el 11/05/07-19horas-Salón de Posgrados-
Instituto de Computación, Facultad de Ingeniería UDELAR, Montevideo, Uruguay,
24. Integración y extensiones |!-fitnesse.SeleniumRunner-!| |Set server to|localhost|and port to|4444|and browser to|*firefox|and domain to|http://www.google.com| Selenium wrapper public class SeleniumRunner extends DoFixture { Selenium seleniumInstance = null; public SeleniumRunner() { } public boolean SetServerToAndPortToAndBrowserToAndDomainTo (String server, int port, String browser, String domain) { seleniumInstance = new DefaultSelenium(server, port, browser, domain); seleniumInstance.start(); return true; } Cory Foy http://www.cornetdesign.com/2006/09/fitnesse-selenium-wrapper.html
25. Integración y extensiones public boolean TheUserClosesTheBrowser() { seleniumInstance.close(); return true; } public boolean TheUserNavigatesToTheURL(String url) { seleniumInstance.open(url); return true; } | The user navigates to the URL|http://www.google.com| |The page has the title|Google| |The page has an element named|q| |The page has an element named|btnG| |The user Types|Cory Foy|in the field named|q| |The user clicks on the button named|btnG| |The user closes the browser| Selenium wrapper