More Related Content
Similar to Selenium Interpreter
Similar to Selenium Interpreter (20)
More from melbournepatterns
More from melbournepatterns (20)
Selenium Interpreter
- 8. Selenium Remote Control browser.open("http://www.google.com/webhp?hl=en"); browser.type("q", "hello world"); browser.click("btnG"); browser.waitForPageToLoad("5000"); assertEquals("hello world - Google Search", browser.getTitle());
- 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 …