sheac / serubyum

A rad new Ruby client for Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serubyum

Selenium + Ruby = Se-Ruby-ummmmmm...

Usage

Start with a Session, and go to the URL you need to test:

session = Serubyum.new_session.go("www.google.com")

From here, you can grab the title from the page:

# not fetched yet...
session.title
# => nil

title = session.fetch_title
# => "Google"

# fetched!
session.title
# => "Google"

Or you can grab an element from the page:

element = session.get_element( using: "css selector", value: "input#lst-ib.gsfi" )

Coming Soon!

Click on an element!

element.click()

About

A rad new Ruby client for Selenium

License:MIT License


Languages

Language:Ruby 98.3%Language:Shell 1.7%