Skip to content

davidlares/selenium-ruby

Repository files navigation

Selenium Ruby

The following repository contains 5 basic examples on how to implement the Selenium WebDriver gem for in-browser automated tests, pretty good for testing expected behavior on web development

There's nothing much to add. These examples use the Mozilla's geckodriver, a proxy which provides an HTTP API for interaction based on the WebDriver protocol, you can find more here

Usage

ruby sel_locate.py (Opens up Google, performs a search and checks for a specific link in the results)

ruby sel_screenshot.py (Takes a screenshot of the web screen)

ruby sel_search.py (Search in Google using a provided keyword)

ruby sel_selectors.py (CSS selectors basic example)

ruby sel_verify.py (Regex search inside a web page)

Once the program is running, a Firefox browser window will be displayed, and then it will execute whatever logic is placed in the script's content.

Set up

Just need to install the Selenium gem like this.

gem install selenium-webdriver

Credits

David Lares S

License

MIT

About

Selenium's in-browser automated test scripts examples w/ Ruby (WebDriver gem)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages