diff --git a/library/test/selenium/readme.md b/library/test/selenium/readme.md index 163cc476..cf2ada04 100644 --- a/library/test/selenium/readme.md +++ b/library/test/selenium/readme.md @@ -20,7 +20,8 @@ WARNING this API is still under development, and maybe it will change java -jar selenium-server-standalone-2.32.0.jar -Dwebdriver.chrome.driver=%PATH_TO%\chromedriver.exe -Dwebdriver.ie.driver=%PATH_TO%\IEDriverServer.exe -## Getting Started Selenium-WebDriver API (Eiffel binding only support (for now) RemoteWebDriver) +## Getting Started Selenium-WebDriver API +(Eiffel binding only support (for now) RemoteWebDriver) The examples and guide are based on http://docs.seleniumhq.org/docs/03_webdriver.jsp#introducing-the-selenium-webdriver-api-by-example WebDriver is a tool for automating web application testing, and in particular to verify that they work as expected. @@ -75,12 +76,20 @@ WebDriver is a tool for automating web application testing, and in particular to ### Selenium-WebDriver API Commands and Operations - Fetching a Page - The first thing you’re likely to want to do with WebDriver is navigate to a page. +##### Fetching a Page + The first thing you are likely to want to do with WebDriver is navigate to a page. web_driver.to_url ("http://www.google.com/") - - + +##### Locating UI Elements (WebElements) +###### By ID +Example of how to find an element that looks like this: + + + +Eiffel Code + web_driver.find_element ((create{SE_BY}).id ("head")) + ### Locating Elements