Commit
…rging. Updated Selenium API from 0.8.0 to 1.0.1. Fixed typo on storeSelectOptions. Not sure the selenium action 'store' can be supported.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -251,51 +251,97 @@ exports.createClient = function(options){ | |
*/ | ||
|
||
exports.commands = [ | ||
'addSelection' | ||
, 'assertElementNotPresent' | ||
// rc | ||
'getNewBrowserSession' | ||
, 'setContext' | ||
, 'testComplete' | ||
// selenium actions | ||
, 'addLocationStrategy' | ||
, 'addScript' | ||
, 'addSelection' | ||
, 'allowNativeXpath' | ||
, 'altKeyDown' | ||
, 'altKeyUp' | ||
//, 'assertElementNotPresent' - should be an accessor | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dshaw
Author
Owner
|
||
, 'answerOnNextPrompt' | ||
, 'assignId' | ||
, 'break' | ||
, 'captureEntirePageScreenshot' | ||
, 'check' | ||
, 'chooseCancelOnNextConfirmation' | ||
, 'chooseOkOnNextConfirmation' | ||
, 'click' | ||
, 'clickAt' | ||
, 'clickAndWait' | ||
, 'clickAt' | ||
, 'clickAtAndWait' | ||
, 'close' | ||
, 'contextMenu' | ||
, 'contextMenuAt' | ||
, 'controlKeyDown' | ||
, 'controlKeyUp' | ||
, 'createCookie' | ||
, 'deleteAllVisibleCookies' | ||
, 'deleteCookie' | ||
, 'deselectPopUp' | ||
, 'doubleClick' | ||
, 'doubleClickAt' | ||
, 'dragAndDrop' | ||
, 'dragAndDropToObject' | ||
, 'echo' | ||
, 'fireEvent' | ||
, 'focus' | ||
, 'goBack' | ||
, 'getNewBrowserSession' | ||
, 'highlight' | ||
, 'ignoreAttributesWithoutValue' | ||
, 'keyDown' | ||
, 'keyPress' | ||
, 'keyUp' | ||
, 'metaKeyDown' | ||
, 'metaKeyUp' | ||
, 'mouseDown' | ||
, 'mouseDownAt' | ||
, 'mouseDownRight' | ||
, 'mouseDownRightAt' | ||
, 'mouseMove' | ||
, 'mouseMoveAt' | ||
, 'mouseOut' | ||
, 'mouseOver' | ||
, 'mouseUp' | ||
, 'mouseUpAt' | ||
, 'mouseUpRight' | ||
, 'mouseUpRightAt' | ||
, 'open' | ||
, 'openWindow' | ||
, 'pause' | ||
This comment has been minimized.
Sorry, something went wrong.
dshaw
Author
Owner
|
||
, 'refresh' | ||
, 'removeAllSelections' | ||
, 'removeScript' | ||
, 'removeSelection' | ||
, 'rollup' | ||
, 'runScript' | ||
, 'select' | ||
, 'selectFrame' | ||
, 'selectPopUp' | ||
, 'selectWindow' | ||
, 'setContext' | ||
, 'setBrowserLogLevel' | ||
, 'setCursorPosition' | ||
, 'setMouseSpeed' | ||
, 'setSpeed' | ||
, 'setTimeout' | ||
, 'shiftKeyDown' | ||
, 'shiftKeyUp' | ||
, 'store' // NOTE: not sure this can be supported in Soda. Variables accessed with ${var}. | ||
This comment has been minimized.
Sorry, something went wrong. |
||
, 'submit' | ||
, 'type' | ||
, 'testComplete' | ||
, 'typeKeys' | ||
, 'uncheck' | ||
, 'useXpathLibrary' | ||
, 'waitForCondition' | ||
, 'waitForFrameToLoad' | ||
, 'waitForPageToLoad' | ||
, 'waitForPopUp' | ||
, 'windowFocus' | ||
, 'windowMaximize' | ||
, 'setSpeed' | ||
]; | ||
|
||
/** | ||
|
@@ -305,7 +351,9 @@ exports.commands = [ | |
*/ | ||
|
||
exports.accessors = [ | ||
'Alert' | ||
'ErrorOnNext' | ||
, 'FailureOnNext' | ||
, 'Alert' | ||
, 'AllButtons' | ||
, 'AllFields' | ||
, 'AllLinks' | ||
|
@@ -317,6 +365,7 @@ exports.accessors = [ | |
, 'BodyText' | ||
, 'Confirmation' | ||
, 'Cookie' | ||
, 'CookieByName' | ||
, 'CursorPosition' | ||
, 'ElementHeight' | ||
, 'ElementIndex' | ||
|
@@ -327,7 +376,8 @@ exports.accessors = [ | |
, 'Expression' | ||
, 'HtmlSource' | ||
, 'Location' | ||
, 'LogMessages' | ||
, 'LogMessages' // Not in 1.0.1 docs | ||
, 'MouseSpeed' | ||
, 'Prompt' | ||
, 'SelectedId' | ||
, 'SelectedIds' | ||
|
@@ -337,17 +387,22 @@ exports.accessors = [ | |
, 'SelectedLabels' | ||
, 'SelectedValue' | ||
, 'SelectedValues' | ||
, 'SelectedOptions' | ||
, 'SelectOptions' // typo s/Selected/Select/ | ||
, 'Speed' | ||
, 'Table' | ||
, 'Text' | ||
, 'Title' | ||
, 'Value' | ||
, 'WhetherThisFrameMatchFrameExpression' | ||
, 'WhetherThisWindowMatchWindowExpression' | ||
, 'XpathCount' | ||
, 'AlertPresent' | ||
, 'Checked' | ||
, 'ConfirmationPresent' | ||
, 'CookiePresent' | ||
, 'Editable' | ||
, 'ElementPresent' | ||
, 'ElementNotPresent' // Selenium breaks naming convention FTL. | ||
This comment has been minimized.
Sorry, something went wrong.
dshaw
Author
Owner
|
||
, 'Ordered' | ||
, 'PromptPresent' | ||
, 'SomethingSelected' | ||
|
@@ -363,6 +418,7 @@ exports.accessors = [ | |
* - get | ||
* - assert | ||
* - assertNot | ||
* - store | ||
* - verify | ||
* - verifyNot | ||
* - waitFor | ||
|
@@ -382,6 +438,7 @@ exports.accessors.map(function(cmd){ | |
'get' + cmd | ||
, 'assert' + cmd | ||
, 'assertNot' + cmd | ||
, 'store' + cmd | ||
This comment has been minimized.
Sorry, something went wrong.
dshaw
Author
Owner
|
||
, 'verify' + cmd | ||
, 'verifyNot' + cmd | ||
, 'waitFor' + cmd | ||
|
1 comment
on commit 24e9662
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool thanks man looks good. I was obviously looking at older docs that came up in google. Some of the commands are really annoying since they dont follow the conventions, kinda silly but oh well. Let me know when you want me to merge this :)
not sure what you mean. I use this often, whats wrong with it as a method?