daveayan.gherkinsalad.components.jqueryui.selectmenu
Class DefaultSelectMenu

java.lang.Object
  extended by daveayan.gherkinsalad.AutomationObject
      extended by daveayan.gherkinsalad.components.core.BaseBrowserElement
          extended by daveayan.gherkinsalad.components.core.Component
              extended by daveayan.gherkinsalad.components.html.impl.SingleOptionSelectableDropDown
                  extended by daveayan.gherkinsalad.components.jqueryui.selectmenu.DefaultSelectMenu
All Implemented Interfaces:
BrowserElement, CanBeDisabled, CanBeEnabled, Nullable, SingleOptionSelectable

public class DefaultSelectMenu
extends SingleOptionSelectableDropDown
implements SingleOptionSelectable


Field Summary
 
Fields inherited from class daveayan.gherkinsalad.AutomationObject
_name, browser, random
 
Constructor Summary
DefaultSelectMenu()
           
 
Method Summary
static DefaultSelectMenu find(By locator)
           
 Strings get_all_options()
           
 String get_selected_option_text()
           
 boolean isEnabled()
           
 void select_code_if_enabled(String arg0)
           
 void select_option_if_enabled(String option)
           
 
Methods inherited from class daveayan.gherkinsalad.components.html.impl.SingleOptionSelectableDropDown
get_selected_option_code, name, should_have_all_these, should_have_any_of_these, should_have_this_option_selected, should_not_have_any_of_these, should_not_have_this_option_selected
 
Methods inherited from class daveayan.gherkinsalad.components.core.BaseBrowserElement
findElement, findElements, found, getText, has_text, isDisabled, isDisplayed, isNotDisplayed, name, root_element, root_elements, should_be_disabled, should_be_displayed, should_be_enabled, should_have_text, should_not_be_displayed, should_not_have_text, toString
 
Methods inherited from class daveayan.gherkinsalad.AutomationObject
action, and, ask, close_browser, error, execute_async_javascript, execute_javascript, feature, given, goto_url, info, is_not_null, is_not_null, is_null, is_null, javascript_authentication, javascript_popup_click_ok, javascript_popup_dismiss, launch_browser, scenario, switch_to_default_window, switch_to_window_with_name, takeScreenshot, task, then, thisIsNamedElement, verify_profile, wait_between_steps_plus, wait_between_steps, wait_for_seconds, warn, when
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface daveayan.gherkinsalad.components.html.SingleOptionSelectable
get_selected_option_code, should_have_all_these, should_have_any_of_these, should_have_this_option_selected, should_not_have_any_of_these, should_not_have_this_option_selected
 
Methods inherited from interface daveayan.gherkinsalad.components.core.BrowserElement
found, getText, has_text, isDisplayed, isNotDisplayed, name, should_be_disabled, should_be_displayed, should_be_enabled, should_have_text, should_not_be_displayed, should_not_have_text
 
Methods inherited from interface daveayan.gherkinsalad.components.core.CanBeDisabled
isDisabled
 
Methods inherited from interface daveayan.gherkinsalad.components.core.Nullable
is_not_null, is_null
 

Constructor Detail

DefaultSelectMenu

public DefaultSelectMenu()
Method Detail

find

public static DefaultSelectMenu find(By locator)

get_all_options

public Strings get_all_options()
Specified by:
get_all_options in interface SingleOptionSelectable
Overrides:
get_all_options in class SingleOptionSelectableDropDown

get_selected_option_text

public String get_selected_option_text()
Specified by:
get_selected_option_text in interface SingleOptionSelectable
Overrides:
get_selected_option_text in class SingleOptionSelectableDropDown

select_code_if_enabled

public void select_code_if_enabled(String arg0)
Specified by:
select_code_if_enabled in interface SingleOptionSelectable
Overrides:
select_code_if_enabled in class SingleOptionSelectableDropDown

select_option_if_enabled

public void select_option_if_enabled(String option)
Specified by:
select_option_if_enabled in interface SingleOptionSelectable
Overrides:
select_option_if_enabled in class SingleOptionSelectableDropDown

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface CanBeEnabled
Overrides:
isEnabled in class BaseBrowserElement


Copyright © 2013. All Rights Reserved.