Class Scrubyt::NavigationActions
In: lib/scrubyt/core/navigation/navigation_actions.rb
Parent: Object

Describing actions which interact with the page

This class contains all the actions that are used to navigate on web pages; first of all, fetch for downloading the pages - then various actions like filling textfields, submitting formst, clicking links and more

Methods

Constants

KEYWORDS = ['fetch', 'fill_textfield', 'fill_textarea', 'submit', 'click_link', 'click_image_map', 'select_option', 'check_checkbox', 'check_radiobutton', 'end']   These are reserved keywords - they can not be the name of any pattern since they are reserved for describing the navigation

Public Class methods

Click the link specified by the text ((delegate it to NavigationActions)

Fetch the document

Action to fill a textarea with text

Action to fill a textfield with a query string

 *parameters*

textfield_name - the name of the textfield (e.g. the name of the google search textfield is ‘q‘

query_string - the string that should be entered into the textfield

Action for selecting an option from a dropdown box

Submit the current form (delegate it to NavigationActions)

[Validate]