Module: Rubidium

Defined in:
lib/rubidium/converter.rb,
lib/rubidium/test_case.rb,
lib/rubidium/test_suite.rb,
lib/rubidium/translator.rb,
lib/rubidium/spec_writer.rb

Defined Under Namespace

Classes: Converter, SpecWriter, TestCase, TestSuite, Translator

Constant Summary collapse

VARIANTS =

these commands accept an assert | verify | waitFor prefix

{
  'Alert'                                     => [:pattern],
  'AlertNotPresent'                           => [],
  'AlertPresent'                              => [],
  'AllButtons'                                => [:pattern],
  'AllFields'                                 => [:pattern],
  'AllLinks'                                  => [:pattern],
  'AllWindowIds'                              => [:pattern],
  'AllWindowNames'                            => [:pattern],
  'AllWindowTitles'                           => [:pattern],
  'Attribute'                                 => [:attributeLocator, :pattern],
  'AttributeFromAllWindows'                   => [:attributeName, :pattern],
  'BodyText'                                  => [:pattern],
  'Checked'                                   => [:locator],
  'Confirmation'                              => [:pattern],
  'ConfirmationNotPresent'                    => [],
  'ConfirmationPresent'                       => [],
  'Cookie'                                    => [:pattern],
  'CookieByName'                              => [:name, :pattern],
  'CookieNotPresent'                          => [:name],
  'CookiePresent'                             => [:name],
  'CursorPosition'                            => [:locator, :pattern],
  'Editable'                                  => [:locator],
  'ElementHeight'                             => [:locator, :pattern],
  'ElementIndex'                              => [:locator, :pattern],
  'ElementNotPresent'                         => [:locator],
  'ElementPositionLeft'                       => [:locator, :pattern],
  'ElementPositionTop'                        => [:locator, :pattern],
  'ElementPresent'                            => [:locator],
  'ElementWidth'                              => [:locator, :pattern],
  'Eval'                                      => [:script, :pattern],
  'Expression'                                => [:expression, :pattern],
  'HtmlSource'                                => [:pattern],
  'Location'                                  => [:pattern],
  'MouseSpeed'                                => [:pattern],
  'NotAlert'                                  => [:pattern],
  'NotAllButtons'                             => [:pattern],
  'NotAllFields'                              => [:pattern],
  'NotAllLinks'                               => [:pattern],
  'NotAllWindowIds'                           => [:pattern],
  'NotAllWindowNames'                         => [:pattern],
  'NotAllWindowTitles'                        => [:pattern],
  'NotAttribute'                              => [:attributeLocator, :pattern],
  'NotAttributeFromAllWindows'                => [:attributeName, :pattern],
  'NotBodyText'                               => [:pattern],
  'NotChecked'                                => [:locator],
  'NotConfirmation'                           => [:pattern],
  'NotCookie'                                 => [:pattern],
  'NotCookieByName'                           => [:name, :pattern],
  'NotCursorPosition'                         => [:locator, :pattern],
  'NotEditable'                               => [:locator],
  'NotElementHeight'                          => [:locator, :pattern],
  'NotElementIndex'                           => [:locator, :pattern],
  'NotElementPositionLeft'                    => [:locator, :pattern],
  'NotElementPositionTop'                     => [:locator, :pattern],
  'NotElementWidth'                           => [:locator, :pattern],
  'NotErrorOnNext'                            => [:message],
  'NotEval'                                   => [:script, :pattern],
  'NotExpression'                             => [:expression, :pattern],
  'NotFailureOnNext'                          => [:message],
  'NotHtmlSource'                             => [:pattern],
  'NotLocation'                               => [:pattern],
  'NotMouseSpeed'                             => [:pattern],
  'NotOrdered'                                => [:locator, :locator],
  'NotPrompt'                                 => [:pattern],
  'NotSelectOptions'                          => [:selectLocator, :pattern],
  'NotSelected'                               => [:selectLocator, :optionLocator],
  'NotSelectedId'                             => [:selectLocator, :pattern],
  'NotSelectedIds'                            => [:selectLocator, :pattern],
  'NotSelectedIndex'                          => [:selectLocator, :pattern],
  'NotSelectedIndexes'                        => [:selectLocator, :pattern],
  'NotSelectedLabel'                          => [:selectLocator, :pattern],
  'NotSelectedLabels'                         => [:selectLocator, :pattern],
  'NotSelectedValue'                          => [:selectLocator, :pattern],
  'NotSelectedValues'                         => [:selectLocator, :pattern],
  'NotSomethingSelected'                      => [:selectLocator],
  'NotSpeed'                                  => [:pattern],
  'NotTable'                                  => [:tableCellAddress, :pattern],
  'NotText'                                   => [:locator, :pattern],
  'NotTitle'                                  => [:pattern],
  'NotValue'                                  => [:locator, :pattern],
  'NotVisible'                                => [:locator],
  'NotWhetherThisFrameMatchFrameExpression'   => [:currentFrameString, :target],
  'NotWhetherThisWindowMatchWindowExpression' => [:currentWindowString, :target],
  'NotXpathCount'                             => [:xpath, :pattern],
  'Ordered'                                   => [:locator1, :locator2],
  'Prompt'                                    => [:pattern],
  'PromptNotPresent'                          => [],
  'PromptPresent'                             => [],
  'SelectOptions'                             => [:selectLocator, :pattern],
  'SelectedId'                                => [:selectLocator, :pattern],
  'SelectedIds'                               => [:selectLocator, :pattern],
  'SelectedIndex'                             => [:selectLocator, :pattern],
  'SelectedIndexes'                           => [:selectLocator, :pattern],
  'SelectedLabel'                             => [:selectLocator, :pattern],
  'SelectedLabels'                            => [:selectLocator, :pattern],
  'SelectedValue'                             => [:selectLocator, :pattern],
  'SelectedValues'                            => [:selectLocator, :pattern],
  'SomethingSelected'                         => [:selectLocator],
  'Speed'                                     => [:pattern],
  'Table'                                     => [:tableCellAddress, :pattern],
  'Text'                                      => [:locator, :pattern],
  'TextNotPresent'                            => [:pattern],
  'TextPresent'                               => [:pattern],
  'Title'                                     => [:pattern],
  'Value'                                     => [:locator, :pattern],
  'Visible'                                   => [:locator],
  'WhetherThisFrameMatchFrameExpression'      => [:currentFrameString, :target],
  'WhetherThisWindowMatchWindowExpression'    => [:currentWindowString, :target],
  'XpathCount'                                => [:xpath, :pattern],
}