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
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 46 def check_checkbox(checkbox_name) FetchAction.check_checkbox(checkbox_name) end
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 79 def click_by_xpath(xpath) FetchAction.click_by_xpath(xpath) end
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 83 def click_image_map(index=0) FetchAction.click_image_map(index) end
Click the link specified by the text
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 71 def click_link(link_spec,index=0) FetchAction.click_link(link_spec,index, 0) end
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 75 def click_link_and_wait(link_spec, sleep_secs=0) FetchAction.click_link(link_spec, 0, sleep_secs) end
Fetch the document
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 56 def fetch(*args) FetchAction.fetch(*args) end
Action to fill a textarea with text
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 36 def fill_textarea(textarea_name, text) FetchAction.fill_textarea(textarea_name, text) end
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
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 26 def fill_textfield(textfield_name, query_string, use_value = nil) FetchAction.fill_textfield(textfield_name, query_string, 0, use_value) end
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 30 def fill_textfield_and_wait(textfield_name, query_string, sleep_secs=0, use_value=nil) FetchAction.fill_textfield(textfield_name, query_string, sleep_secs, use_value) end
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 87 def frame(attribute,value) FetchAction.frame(attribute,value) end
Action for selecting an option from a dropdown box
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 42 def select_option(selectlist_name, option) FetchAction.select_option(selectlist_name, option) end
Submit the current form
# File lib/scrubyt/core/navigation/navigation_actions.rb, line 61 def submit(index=nil, type=nil) FetchAction.submit(nil, index, type) end
Generated with the Darkfish Rdoc Generator 2.