Try   HackMD

seide2sideeX Documnet

  • Selenium command
  • SideeX command
  • Target
  • Value
  • Warning
  • Example

addSelection

Selenium SideeX
command name addSelection addSelection
Target An element locator A locator of a multi-select box
Value The value to input. An option locator of the element to be added. For example: label=Option1.
Warning N/A
Example:
// selenium .side
    "command": "addSelection",
    "target": "id=fruits",
    "value": "label=Banana"
    
// sideeX .json
    "name": "addSelection",
    "target": "id=fruits",
    "value": "Banana"

answerOnNextPrompt

Selenium SideeX
command name answerOnNextPrompt answerOnNextPrompt
Target The answer to give in response to the prompt pop-up The string to be set to the next prompt pop-up
Value N/A N/A
Warning Make sure this command appears before the 'assertPrompt' command.
Example:
// selenium .side
    "command": "answerOnNextPrompt",
    "target": "",
    "value": ""
    
// sideeX .json
    "name": "answerOnNextPrompt",
    "target": "",
    "value": ""

assertAlert

Selenium SideeX
command name assertAlert assertAlert
Target The expected alert message The expected alert message
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "assertAlert",
    "target": "String",
    "value": ""
    
// sideeX .json
    "name": "assertAlert",
    "target": "String",
    "value": ""

assertChecked

Selenium SideeX
command name assertChecked assertValue
Target An element locator A locator
Value N/A The expected value of the target element.(Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "assertChecked",
    "target": "id=flexCheckChecked",
    "value": ""
// sideeX .json
    "name": "assertValue",
    "target": "id=flexCheckChecked",
    "value": "on"

assertConfirmation

Selenium SideeX
command name assertConfirmation assertConfirmation
Target The text to use The expected confirmation message
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "assertConfirmation",
    "target": "String",
    "value": ""
    
// sideeX .json
    "name": "assertConfirmation",
    "target": "String",
    "value": ""

assertElementPresent

Selenium SideeX
command name assertElementPresent assertPresence
Target An element locator A locator
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "assertElementPresent",
    "target": "id=Button",
    "value": ""
    
// sideeX .json
    "name": "assertPresence",
    "target": "id=Button",
    "value": ""

assertNotChecked

Selenium SideeX
command name assertNotChecked assertValue
Target A locator An element locator
Value N/A The expected value of the target element (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "assertNotChecked",
    "target": "id=flexCheckDefault",
    "value": ""
// sideeX .json
    "name": "assertValue",
    "target": "id=flexCheckDefault",
    "value": "off"

assertPrompt

Selenium SideeX
command name assertPrompt assertPrompt
Target The expected prompt message The expected prompt message
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "assertPrompt",
    "target": "String",
    "value": ""
    
// sideeX .json
    "name": "assertPrompt",
    "target": "String",
    "value": ""

assertText

Selenium SideeX
command name assertText assertText
Target An element locator A locator
Value An exact string match. Support for pattern matching is in the works. The expected text of the target element (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "assertText",
    "target": "id=text",
    "value": "String"
    
// sideeX .json
    "name": "assertText",
    "target": "id=text",
    "value": "String"

assertTitle

Selenium SideeX
command name assertTitle assertTitle
Target An exact string match. Support for pattern matching is in the works. The expected string of the title (Exact matching)
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "assertTitle",
    "target": "String",
    "value": ""
    
// sideeX .json
    "name": "assertTitle",
    "target": "String",
    "value": ""

assertValue

Selenium SideeX
command name assertValue assertValue
Target An element locator A locator
Value An exact string match. Support for pattern matching is in the works. The expected value of the target element. (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "assertValue",
    "target": "id=account",
    "value": "P12345"
    
// sideeX .json
    "name": "assertValue",
    "target": "id=account",
    "value": "P12345"

check

Selenium SideeX
command name check clickAt
Target An element locator. A locator
Value N/A x,y position of the mouse event relative to the target element. For example: 10,10. A blank value means a simple click.
Warning N/A
Example:
// selenium .side
    "command": "check",
    "target": "id=javascript",
    "value": ""
    
// sideeX .json
    "command": "clickAt",
    "target": "id=javascript",
    "value": ""

chooseCancelOnNextConfirmation

Selenium SideeX
command name chooseCancelOnNextConfirmation chooseCancelOnNextConfirmation
Target N/A N/A
Value N/A N/A
Warning Make sure this command appears before the 'assertConfirmation' command.
Example:
// selenium .side
    "command": "chooseCancelOnNextConfirmation",
    "target": "",
    "value": ""
    
// sideeX .json
    "command": "chooseCancelOnNextConfirmation",
    "target": "",
    "value": ""

chooseCancelOnNextPrompt

Selenium SideeX
command name chooseCancelOnNextPrompt chooseCancelOnNextPrompt
Target N/A N/A
Value N/A N/A
Warning Make sure this command appears before the 'assertPrompt' command.
Example:
// selenium .side
    "command": "chooseCancelOnNextPrompt",
    "target": "",
    "value": ""
    
// sideeX .json
    "command": "chooseCancelOnNextPrompt",
    "target": "",
    "value": ""

chooseOkOnNextConfirmation

Selenium SideeX
command name chooseOkOnNextConfirmation chooseOkOnNextConfirmation
Target N/A N/A
Value N/A N/A
Warning Make sure this command appears before the 'assertConfirmation' command.
Example:
// selenium .side
    "command": "chooseOkOnNextConfirmation",
    "target": "",
    "value": ""
    
// sideeX .json
    "command": "chooseOkOnNextConfirmation",
    "target": "",
    "value": ""

click

Selenium SideeX
command name click clickAt
Target An element locator A locator
Value N/A x,y position of the mouse event relative to the target element. For example: 10,10. A blank value means a simple click.
Warning N/A
Example:
// selenium .side
    "command": "click",
    "target": "id=demoClickAtButton",
    "value": ""
    
// sideeX .json
    "command": "clickAt",
    "target": "id=demoClickAtButton",
    "value": ""

clickAt

Selenium SideeX
command name clickAt clickAt
Target An element locator A locator
Value Specifies the x,y position (e.g., - 10,20) of the mouse event relative to the element found from a locator. x,y position of the mouse event relative to the target element. For example: 10,10. A blank value means a simple click.
Warning N/A
Example:
// selenium .side
    "command": "clickAt",
    "target": "id=demoClickAtButton",
    "value": "10,20"
    
// sideeX .json
    "command": "clickAt",
    "target": "id=demoClickAtButton",
    "value": "10,20"

close

Selenium SideeX
command name close close
Target N/A Auto-generated
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "close",
    "target": "",
    "value": ""
    
// sideeX .json
    "name": "close",
    "target": "win_ser_local",
    "value": ""

do repeatIf

Selenium SideeX
command name do repeatIf WHILE
Target N/A JavaScript expression that returns a boolean result for use in control flow commands. A JavaScript expression that returns a boolean result
Value N/A An optional argument that specifies the maximum number of times a looping control flow command can execute. This protects against infinite loops. The defaults value is set to 1000. Maximum number of the loops. A blank value means no such maximum number restriction.
Warning N/A
Example:
// selenium .side
    "command": "do",
    "target": "",
    "value": ""
    
    "command": "echo",
    "target": "${test}",
    "value": ""
    
    "command": "executeScript",
    "target": "return ${test} + 1",
    "value": "test"
    
    "command": "repeatIf",
    "target": "${test} < 4",
    "value": ""
    
// sideeX .json
    "command": "echo",
    "target": "${test}",
    "value": ""
    
    "command": "storeEval",
    "target": "${test} + 1",
    "value": "test"
    
    "command": "WHILE",
    "target": "${test} < 4",
    "value": ""
    
    "command": "echo",
    "target": "${test}",
    "value": ""
    
    "command": "storeEval",
    "target": "${test} + 1",
    "value": "test"
    
    "command": "END",
    "target": "${test}",
    "value": ""
    
    

doubleClick

Selenium SideeX
command name doubleClick doubleClickAt
Target An element locator A locator
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "doubleClick",
    "target": "id=demoClickAtButton",
    "value": ""
    
// sideeX .json
    "command": "doubleClickAt",
    "target": "id=demoClickAtButton",
    "value": ""

doubleClickAt

Selenium SideeX
command name doubleClickAt doubleClickAt
Target An element locator A locator
Value Specifies the x,y position (e.g., - 10,20) of the mouse event relative to the element found from a locator. x,y position of the mouse event relative to the target element. For example: 10,10. A blank value means a simple double click.
Description Double clicks on a target element (e.g., a link, button, checkbox, or radio button). The coordinates are relative to the target element (e.g., 0,0 is the top left corner of the element) and are mostly used to check effects that relay on them, for example the material ripple effect.
Warning N/A
Example:
// selenium .side
    "command": "doubleClickAt",
    "target": "id=demoClickAtButton",
    "value": "10,20"
    
// sideeX .json
    "command": "doubleClickAt",
    "target": "id=demoClickAtButton",
    "value": "10,20"

dragAndDropToObject

Selenium SideeX
command name dragAndDropToObject dragAndDropToObject
Target Locator of object to be dragged Locator of object to be dragged
Value Locator of drag destination object Locator of drag destination object
Warning N/A
Example:
// selenium .side
    "command": "dragAndDropToObject",
    "target": "id=drag1",
    "value": "id=div2"
    
// sideeX .json
    "name": "dragAndDropToObject",
    "target": "id=drag1",
    "value": "id=div2"

echo

Selenium SideeX
command name echo echo
Target The string or variable print on log panel The string or variable print on log panel
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "echo",
    "target": "Hello World",
    "value": ""
    
// sideeX .json
    "name": "echo",
    "target": "Hello World",
    "value": ""

editContent

Selenium SideeX
command name editContent editContent
Target An element locator A locator
Value The value to input. Edits the content of a content-editable element
Warning N/A
Example:
// selenium .side
    "command": "editContent",
    "target": "css=p",
    "value": "Hello World"
    
// sideeX .json
    "name": "editContent",
    "target": "css=p",
    "value": "Hello World"

else

Selenium SideeX
command name else else
Target N/A N/A
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "else",
    "target": "",
    "value": ""
    
// sideeX .json
    "name": "else",
    "target": "",
    "value": ""

elseIf

Selenium SideeX
command name elseIf else if
Target JavaScript expression that returns a boolean result for use in control flow commands N/A A JavaScript expression that returns a boolean result
Value N/A N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "elseIf",
    "target": "${myVar} === 'b'",
    "value": ""
    
// sideeX .json
    "name": "else",
    "target": "",
    "value": ""
    
    "name": "if",
    "target": "'${myVar}' === 'b'",
    "value": ""

end

Selenium SideeX
command name end end
Target N/A N/A
Value N/A N/A
Warning Note that make sure add
Example:
// selenium .side
    "command": "end",
    "target": "",
    "value": ""
    
// sideeX .json
    "name": "end",
    "target": "",
    "value": ""

executeScript

Selenium SideeX
command name executeScript storeEval
Target The JavaScript snippet to run A Javascript expression to be executed.
For example: x=2; y=3; z = Math.max(x,y);. The example expression will be evaluated to 3 and the evaluation result will be stored in the variable declared in Value.
Value The name of a variable without brackets The name of the variable storing the evaluation result.
For example: var_result.
Warning executeScript command may still have some problems. Please check your command target. We delete all of the “return” in target. So it might get some problems if “return” is needed. Please add “return” manually.
Example:
// selenium .side
    "command": "executeScript",
    "target": "x=2; y=3; return x+y;",
    "value": "myVar"
    
// sideeX .json
    "name": "storeEval",
    "target": "x=2; y=3; x+y;",
    "value": "myVar"

Warning Example:
// selenium .side
    "command": "executeScript",
    "target": "let a = [1, 2, 3]; let b = a.map((num) => { return num*num;}); return b;",
    "value": "myVar"
    
// sideeX .json
// seide2sideex will delete all of the "return", but this answer is incorrect.

//seide2sideex version (incorrect answer)
    "name": "storeEval",
    "target": "let a = [1, 2, 3]; let b = a.map((num) => { num*num;}); b;",
    "value": "myVar" 
//correct answer
    "name": "storeEval",
    "target": "let a = [1, 2, 3]; let b = a.map((num) => { return num*num;}); b;",
    "value": "myVar" 

executeAsyncScript

Selenium SideeX
command name executeAsyncScript storeEval
Target The JavaScript snippet to run A Javascript expression to be executed.
For example: x=2; y=3; z = Math.max(x,y);. The example expression will be evaluated to 3 and the evaluation result will be stored in the variable declared in Value.
Value The name of a variable without brackets. The name of the variable storing the evaluation result.
For example: var_result.
Warning executeAsyncScript command may still have some problems. Please check your command target. We delete all of the “return” in target. So it might get some problems if “return” is needed. Please add “return” manually.
Example:
// selenium .side
    "command": "executeAsyncScript",
    "target": "return new Promise((r) => {setTimeout(() => {r(\"hello world\")}, 500)})",
    "value": "myVar"
    
// sideeX .json
    "name": "storeEval",
    "target": "new Promise((r) => {setTimeout(() => {r(\"hello world\")}, 500)})",
    "value": "myVar"

Warning Example:
// Same condition as executeScript

forEach

Selenium SideeX
command name forEach storeEval WHILE
Target The name of a variable containing a JavaScript array A Javascript expression to be executed. For example: x=2; y=3; z = Math.max(x,y);. The example expression will be evaluated to 3 and the evaluation result will be stored in the variable declared in Value. A JavaScript expression that returns a boolean result
Value The name of the variable used when iterating over a collection in a looping control flow command. (e.g., for each) The name of the variable storing the evaluation result. For example: var_result. Maximum number of the loops. A blank value means no such maximum number restriction.
Description The name of the variable used when iterating over a collection in a looping control flow command (e.g., for each).
Warning N/A
Example:
// selenium .side
    "command": "executeScript",
    "target": "return [0,1,2,3,4,5,6,7,8,9,10]",
    "value": "test"
    
    "command": "forEach",
    "target": "test",
    "value": "iter"
    
    "command": "echo",
    "target": "${iter}",
    "value": ""
    
    "command": "end",
    "target": "",
    "value": ""
// sideeX .json
    "command": "storeEval",
    "target": "return [0,1,2,3,4,5,6,7,8,9,10]",
    "value": "test"
    
    "command": "storeEval",
    "target": "-1",
    "value": "count1"
    
    "command": "storeEval",
    "target": "${test}.length",
    "value": "length1"
    
    "command": "WHILE",
    "target": "${count1} < ${length1} - 1",
    "value": ""
    
    "command": "storeEval",
    "target": "${count1} + 1",
    "value": "count1"
    
    "command": "storeEval",
    "target": "${test}[${count1}]",
    "value": "iter"
    
    "command": "echo",
    "target": "${iter}",
    "value": ""
    
    "command": "END",
    "target": "",
    "value": ""

IF

Selenium SideeX
command name IF IF
Target JavaScript expression that returns a boolean result for use in control flow commands A JavaScript expression that returns a boolean result
Value N/A N/A
Warning IF command maybe still have some problems. Please check your IF command's target. If your parameters type are string, you need to add " or ' on both sides of the parameters. ex. "${myVar}"
Example:
// selenium .side
    "command": "if",
    "target": "${myVar} === 100",
    "value": ""
    
// sideeX .json
    "name": "if",
    "target": "${myVar} === 100",
    "value": ""

Warning Example:
// selenium .side
    "command": "if",
    "target": "${myVar} === 'b'",
    "value": ""
    
// sideeX .json
// If your ${myVar} is a string, you need to add " or '.
// Ex. "${myVar}" or '${myVar}'
    "name": "if",
    "target": "'${myVar}' === 'b'",
    "value": "" 

mouseDown

Selenium SideeX
command name mouseDown mouseDownAt
Target An element locator A locator
Value N/A x,y position of the mouse event relative to the target element. For example: 10,10
Warning N/A
Example:
// selenium .side
    "command": "mouseDown",
    "target": "id=opacity",
    "value": ""
    
// sideeX .json
    "command": "mouseDownAt",
    "target": "id=opacity",
    "value": ""

mouseDownAt

Selenium SideeX
command name mouseDownAt mouseDownAt
Target An element locator A locator
Value Specifies the x,y position (e.g., - 10,20) of the mouse event relative to the element found from a locator. x,y position of the mouse event relative to the target element. For example: 10,10
Warning N/A
Example:
// selenium .side
    "command": "mouseDownAt",
    "target": "id=opacity",
    "value": "10,20"
    
// sideeX .json
    "command": "mouseDownAt",
    "target": "id=opacity",
    "value": "10,20"

mouseMoveAt

Selenium SideeX
command name mouseDownAt mouseDownAt
Target An element locator A locator
Value Specifies the x,y position (e.g., - 10,20) of the mouse event relative to the element found from a locator. A JSON String containing a series of movements
Warning N/A
Example:
// selenium .side
    "command": "mouseDownAt",
    "target": "id=canvas",
    "value": "30,30"
    
    "command": "mouseMoveAt",
    "target": "id=canvas",
    "value": "90,60"
    
    "command": "mouseMoveAt",
    "target": "id=canvas",
    "value": "70,20"
    
    "command": "mouseMoveAt",
    "target": "id=canvas",
    "value": "300,400"
    
    "command": "mouseUpAt",
    "target": "id=canvas",
    "value": "5,200"

    
// sideeX .json
    "command": "mouseDownAt",
    "target": "id=canvas",
    "value": "30,30"
    
    "command": "dragAndDrop",
    "target": "id=canvas",
    "value": "{\"StartPoint\":{\"X\":30,\"Y\":30},\"Movements\":[{\"TD\":0,\"OX\":60,\"OY\":30},{\"TD\":0,\"OX\":-20,\"OY\":-40},{\"TD\":0,\"OX\":230,\"OY\":380}]}
    

mouseOut

Selenium SideeX
command name mouseOut mouseOut
Target An element locator A locator
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "mouseOut",
    "target": "id=opacity",
    "value": ""
    
// sideeX .json
    "command": "mouseOut",
    "target": "id=opacity",
    "value": ""

mouseOver

Selenium SideeX
command name mouseOver mouseOver
Target An element locator A locator
Value N/A x,y position of the mouse event relative to the target element.
Warning N/A
Example:
// selenium .side
    "command": "mouseOver",
    "target": "id=opacity",
    "value": ""
    
// sideeX .json
    "command": "mouseOver",
    "target": "id=opacity",
    "value": ""

mouseUp

Selenium SideeX
command name mouseUp mouseUpAt
Target An element locator A locator
Value N/A x,y position of the mouse event relative to the target element. For example: 10,10
Warning N/A
Example:
// selenium .side
    "command": "mouseUp",
    "target": "id=opacity",
    "value": ""
    
// sideeX .json
    "command": "mouseUpAt",
    "target": "id=opacity",
    "value": ""

mouseUpAt

Selenium SideeX
command name mouseUpAt mouseUpAt
Target An element locator A locator
Value Specifies the x,y position (e.g., - 10,20) of the mouse event relative to the element found from a locator. x,y position of the mouse event relative to the target element. For example: 10,10
Warning N/A
Example:
// selenium .side
    "command": "mouseUpAt",
    "target": "id=opacity",
    "value": "10,20"
    
// sideeX .json
    "command": "mouseUpAt",
    "target": "id=opacity",
    "value": "10,20"

open

Selenium SideeX
command name open open
Target A URL A URL
Value N/A N/A
Warning Make sure that base URL is correct.
Example:
// selenium .side
    "command": "open",
    "target": "https://sideex.io/",
    "value": ""
    
// sideeX .json
    "name": "open",
    "target": "https://sideex.io/",
    "value": ""

pause

Selenium SideeX
command name pause pause
Target The amount of time to wait (in milliseconds) N/A
Value N/A The amount of time to wait (in milliseconds)
Warning N/A
Example:
// selenium .side
    "command": "pause",
    "target": "5000",
    "value": ""
    
// sideeX .json
    "name": "pasue",
    "target": "",
    "value": "5000"

removeSelection

Selenium SideeX
command name removeSelection removeSelection
Target An element locator A locator of a multi-select box
Value An option locator, typically just an option label (e.g. "John Smith"). An option locator of the element to be added. For example: label=Option1.
Description Remove a selection from the set of selected options in a multi-select element using an option locator.
Warning N/A
Example:
// selenium .side
    "command": "removeSelection",
    "target": "id=fruits",
    "value": "label=StrawBerry"
    
// sideeX .json
    "name": "removeSelection",
    "target": "id=fruits",
    "value": "StrawBerry"

RUN/INCLUDE

Selenium SideeX
command name run INCLUDE
Target The test case to be included while playing. The test case to be included while playing.
Value N/A N/A
Warning Please make sure that the test case is added to your test suite. Also, remember to open the test suite that have test case you need to run/INCLUDE.
Example:
// selenium .side
    "command": "run",
    "target": "testCaseName",
    "value": ""
    
// sideeX .json
    "name": "INCLUDE",
    "target": "suiteName.testCaseName",
    "value": ""

runScript

Selenium SideeX
command name runScript runScript
Target Some Javascript expressions to be executed. Some Javascript expressions to be executed.
Value N/A N/A
Warning Note that avoid using alert(), prompt(), and confirm() in the Javascript expression. These three functions will not take effect while playing. Please use console.log() to log messages instead.
Example:
// selenium .side
    "command": "runScript",
    "target": "console.log('hello world')",
    "value": ""
    
// sideeX .json
    "name": "runScript",
    "target": "console.log('hello world')",
    "value": ""

select

Selenium SideeX
command name select select
Target A locator of a drop-down menu A locator of a drop-down menu
Value An option locator, typically just an option label. An option locator, typically just an option label.
Warning N/A
Example:
// selenium .side
    "command": "select",
    "target": "id=fruits",
    "value": "label=Pear"
    
// sideeX .json
    "name": "select",
    "target": "id=fruits",
    "value": "label=Pear"

selectWindow

Selenium SideeX
command name selectWindow selectWindow
Target A handle representing a specific page (tab, or window). A handle representing a specific page (tab, or window).
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "selectWindow",
    "target": "handle=${root}",
    "value": ""
    
// sideeX .json
    "name": "selectWindow",
    "target": "win_ser_local",
    "value": ""
    
// selenium .side
    "command": "selectWindow",
    "target": "handle=${win6199}", 
    "value": ""
    
// sideeX .json
    "name": "selectWindow",
    "target": "win_ser_1", 
    "value": ""

selectFrame

Selenium SideeX
command name selectFrame selectFrame
Target An element locator A locator
index=i (select the i-th frame, i starts from 0)
relative=parent (Select the parent frame)
relative=top (select the top frame)
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "selectFrame",
    "target": "index=0",
    "value": ""
    
// sideeX .json
    "name": "selectFrame",
    "target": "index=0",
    "value": ""

sendKeys

Selenium SideeX
command name sendKeys sendKeys
Target An element locator A locator
Value N/A N/A
Warning Note that some website will not accept ${KEY_ENTER}
Example:
// selenium .side
    "command": "sendKeys",
    "target": "id=account",
    "value": "acc123"
    
// sideeX .json
    "name": "sendKeys",
    "target": "id=account",
    "value": "acc123"

setSpeed

Selenium SideeX
command name setSpeed setSpeed
Target The amount of time to wait (in milliseconds) N/A
Value N/A 1, 2, 3, 4, or 5. 1 is the slowest, and 5 is the fastest.
Warning N/A
Example:
// selenium .side
    "command": "setSpeed",
    "target": "4000",
    "value": ""
    
// sideeX .json
    "name": "setSpeed",
    "target": "",
    "value": "1"

setWindowSize

Selenium SideeX
command name setWindowSize setWindowSize
Target The width and height of window For example:1080x720 N/A
Value N/A The width and height of window. For example:1080,720 (corresponding to selenium traget)
Warning The minimum window size is 500x375, so any width or height less than minimum window size will be automatically set to minimum window size.
Example:
// selenium .side
    "command": "setWindowSize",
    "target": "1080x720",
    "value": ""
    
// sideeX .json
    "name": "setWindowSize",
    "target": "",
    "value": "1080x720"

Warning Example:
// selenium .side
    "command": "setWindowSize",
    "target": "400x720",
    "value": ""
    
// sideeX .json
// 400 is automatically set to minimum window size 500
    "name": "setWindowSize",
    "target": "",
    "value": "500,720" 

store

Selenium SideeX
command name store store
Target A string to store A string to store
Value The name of the variable storing the string. The name of the local variable storing the string.
Warning N/A
Example:
// selenium .side
    "command": "store",
    "target": "Bob",
    "value": "nameVar"
    
// sideeX .json
    "name": "store",
    "target": "Bob",
    "value": "nameVar"

storeAttribute

Selenium SideeX
command name storeAttribute storeElement storeEval
Target An element locator followed by an @ sign and then the name of the attribute. Example: linkText=Free Download@href An element locator. Example: linkText=Free Download A Javascript expression to be executed. e.g. ${tempVar.href}
Value The name of a variable without brackets. Example: varElemAttribute The name of the variable storing the target element. Example: tempVar The name of the variable storing the evaluation result. Example: varElemAttribute
Warning Note that some 'locator@class' cases will get 'null' from SideeX.
Example:
// selenium .side
    "command": "storeAttribute",
    "target": "linkText=Free Download@href",
    "value": "varElemAttribute"
    
// sideeX .json
    "name": "storeElement",
    "target": "linkText=Free Download",
    "value": "tempVar123"
    
    "name": "storeEval",
    "target": "${tempVar123.href}",
    "value": "varElemAttribute"

storeText

Selenium SideeX
command name storeText storeText
Target A string to store A string to store
Value The name of the variable storing the string. The name of the local variable storing the string.
Warning N/A
Example:
// selenium .side
    "command": "storeText",
    "target": "id=Button",
    "value": "buttonText"
    
// sideeX .json
    "name": "storeText",
    "target": "id=Button",
    "value": "buttonText"

storeTitle

Selenium SideeX
command name storeTitle storeTitle
Target Title of the current page Title of the current page
Value Variable name Variable name
Warning N/A
Example:
// selenium .side
    "command": "storeTitle",
    "target": "SideeX | Auto-First Record-Playback Web Test Automation",
    "value": "pageTitle"
    
// sideeX .json
    "name": "storeTitle",
    "target": "SideeX | Auto-First Record-Playback Web Test Automation",
    "value": "pageTitle"

storeValue

Selenium SideeX
command name storeValue storeValue
Target The locator to an input element The locator to an input element
Value Variable name. Variable name.
Warning N/A
Example:
// selenium .side
    "command": "storeValue",
    "target": "id=email",
    "value": "email"
    
// sideeX .json
    "name": "storeValue",
    "target": "id=email",
    "value": "email"

storeWindowHandle

Selenium SideeX
command name storeWindowHandle selectWindow
Target A handle representing a specific page (tab, or window). N/A
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "storeWindowHandle",
    "target": "root",
    "value": ""
    
    "command": "selectWindow",
    "target": "handle=${win6199}",
    "value": ""
    
// sideeX .json
    "command": "selectWindow",
    "target": "win_ser_1",
    "value": ""

submit

Selenium SideeX
command name submit submit
Target An element locator for the form you want to submit An element locator for the form you want to submit
Value N/A N/A
Warning submit command may still have some problems. Only the target that contains xpath can be converted.
Example:
// selenium .side
    "command": "submit",
    "target": "xpath=//form[@id='form']/input",
    "value": ""
    
// sideeX .json
    "command": "submit",
    "target": "//form[@id='form']",
    "value": "false"

Warning Example:
// Any target other from xpath can be converted, but not works

times

Selenium SideeX
command name times store WHILE storeEval
Target The number of attempts a times control flow loop will execute the commands within its block. Example: 3 A string to store. Example: 0 A JavaScript expression that returns a boolean result. Example: ${timesTemp} < 3 A Javascript expression to be executed.
Value An optional argument that specifies the maximum number of times a looping control flow command can execute. This protects against infinite loops. The defaults value is set to 1000. The name of the local variable (within a test case) storing the string. Example: timesTemp At this case: N/A At this case: timesTemp
Warning Note that do not let timesOfLoop bigger than loop limit, if does, we will pick the loop limit be the target, to make sure that SideeX can run successfuly.
Example:
// selenium .side
    "command": "times",
    "target": "3",
    "value": ""
    
// sideeX .json
    "name": "store",
    "target": "0",
    "value": "timesTemp123"
    
    ...
    
    "name": "WHILE",
    "target": "${timesTemp123} < 3",
    "value": ""
    
    "name": "storeEval",
    "target": "${timesTemp123} + 1 ",
    "value": "timesTemp123"

type

Selenium SideeX
command name type type
Target An element locator An element locator
Value The string to be set to the target element. The string to be set to the target element.
Warning NOTE: XPath locators are not supported.
Example:
// selenium .side
    "command": "type",
    "target": "name=q",
    "value": "sideex"
    
// sideeX .json
    "command": "type",
    "target": "name=q",
    "value": "sideex"

Warning Example:
// Any target other from xpath can be converted, but not works

unCheck

Selenium SideeX
command line unCheck storeElement storeEval IF runScript END
Target An element locator The locator of the target element. For example: xpath=//[id='foo']. A Javascript expression to be executed. For example: x=2; y=3; z = Math.max(x,y);. The example expression will be evaluated to 3 and the evaluation result will be stored in the variable declared in Value. A JavaScript expression that returns a boolean result Some Javascript expressions to be executed. For example: var a=10; var b=10; console.log(a+b);. N/A
Value N/A The name of the variable storing the target element. For example: var_elem. The name of the variable storing the evaluation result. For example: var_result. N/A The amount of time to wait before timeout (in milliseconds). Set -1 for infinite wait N/A
Description Uncheck a toggle-button (checkbox/radio).
Warning N/A
Example:
// selenium .side
    "command": "uncheck",
    "target": "id=css",
    "value": ""
    
// sideeX .json
    "command": "storeElement",
    "target": "id=css",
    "value": "id=css"
    
    "command": "storeEval",
    "target": "${id=css.checked}",
    "value": "id=css"
    
    "command": "IF",
    "target": "${id=css}",
    "value": ""
    
    "command": "runScript",
    "target": "document.getElementById(\"css\").checked = false",
    "value": "id=css"
    
    "command": "END",
    "target": "",
    "value": ""

verify checked

Selenium SideeX
command name verifyChecked verifyValue
Target An element locator An element locator
Value N/A The expected value of the target element. (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "verifyChecked",
    "target": "id=flexCheckChecked",
    "value": ""
    
// sideeX .json
    "name": "verifyvalue",
    "target": "id=flexCheckChecked",
    "value": "on"

verifyElementPresent

Selenium SideeX
command name verifyElementPresent verifyPresence
Target An element locator A locator
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "verifyElementPresent",
    "target": "id=Button",
    "value": ""
    
// sideeX .json
    "name": "verifyPresence",
    "target": "id=Button",
    "value": ""

verify not checked

Selenium SideeX
command name verifyNotChecked verifyValue
Target An element locator An element locator
Value N/A The expected value of the target element. (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "verifyNotChecked",
    "target": "id=flexCheckDefault",
    "value": ""
    
// sideeX .json
    "name": "verifyvalue",
    "target": "id=flexCheckDefault",
    "value": "off"

verifyText

Selenium SideeX
command name verifyText verifyText
Target An element locator An element locator
Value An exact string match The expected text of the target element. (Exact matching)
Warning N/A
Example:
// selenium .side
    "command": "verifyText",
    "target": "id=SIvCob",
    "value": "Google 提供: English"
    
// sideeX .json
    "name": "verifyText",
    "target": "id=SIvCob",
    "value": "Google 提供: English"

verifyTitle

Selenium SideeX
command name verifyTitle verifyTitle
Target An exact string match The expected string of the title (Exact matching)
Value N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "verifyTitle",
    "target": "MDN Web Docs",
    "value": ""
    
// sideeX .json
    "name": "verifyTitle",
    "target": "MDN Web Docs",
    "value": ""

verifyValue

Selenium SideeX
command name verifyValue verifyValue
Target An element locator An element locator
Value An exact string match The expected value of the target element. (Exact matching)
Description Verify the target value in input type with expected value. The test will continue even if the verification fails. Moreover, expected value can be a variable.
Warning N/A
Example:
// selenium .side
    "command": "verifyValue",
    "target": "name=q",
    "value": "aaa"
    
// sideeX .json
    "name": "verifyValue",
    "target": "name=q",
    "value": "aaa"

waitForElementNotPresent

Selenium SideeX
command name waitForElementNotPresent waitForElementNotPresent
Target An element locator. A locator
Value The amount of time to wait (in milliseconds). The maximum amount of milliseconds before timeout. For example: 5000 means the execution will continuously check for the element's removal from the DOM tree within 5 seconds. Leave blank for default waiting time (10s).
Warning N/A
Example:
// selenium .side
    "command": "waitForElementNotPresent",
    "target": "id=image",
    "value": "5000"
    
// sideeX .json
    "name": "waitForElementNotPresent",
    "target": "id=image",
    "value": "5000"

waitForElementNotVisible

Selenium SideeX
command name waitForElementNotVisible waitForElementNotVisible
Target An element locator. A locator
Value The amount of time to wait (in milliseconds). The maximum amount of milliseconds before timeout. For example: 5000 means the execution will continuously check for the element's invisibility within 5 seconds. Leave blank for default waiting time (10s).
Warning N/A
Example:
// selenium .side
    "command": "waitForElementNotVisible",
    "target": "id=image",
    "value": "5000"
    
// sideeX .json
    "name": "waitForElementNotVisible",
    "target": "id=image",
    "value": "5000"

waitForElementPresent

Selenium SideeX
command name waitForElementPresent waitForElementPresent
Target An element locator. A locator
Value The amount of time to wait (in milliseconds). The maximum amount of milliseconds before timeout. For example: 5000 means the execution will continuously check for the element's presence within 5 seconds. Leave blank for default waiting time (10s).
Description Wait for a target element to be present on the page.
Warning N/A
Example:
// selenium .side
    "command": "waitForElementPresent",
    "target": "id=image",
    "value": "5000"
    
// sideeX .json
    "name": "waitForElementPresent",
    "target": "id=image",
    "value": "5000"

waitForElementVisible

Selenium SideeX
command name waitForElementVisible waitForElementVisible
Target An element locator. A locator
Value The amount of time to wait (in milliseconds). The maximum amount of milliseconds before timeout. For example: 5000 means the execution will continuously check for the element's visibility within 5 seconds. Leave blank for default waiting time (10s).
Warning N/A
Example:
// selenium .side
    "command": "waitForElementVisible",
    "target": "id=image",
    "value": "5000"
    
// sideeX .json
    "name": "waitForElementVisible",
    "target": "id=image",
    "value": "5000"

waitForText

Selenium SideeX
command name waitForText storeEval WHILE storeText IF END
Target An element locator. A Javascript expression to be executed. For example: x=2; y=3; z = Math.max(x,y);. The example expression will be evaluated to 3 and the evaluation result will be stored in the variable declared in Value. A JavaScript expression that returns a boolean result A locator A JavaScript expression that returns a boolean result N/A
Value The text to use The name of the variable storing the evaluation result. For example: var_result. Maximum number of loops. A blank value means no maximum number restriction. The name of the variable storing the text of the target element. For example: var_ele_txt. N/A N/A
Warning N/A
Example:
// selenium .side
    "command": "waitForText",
    "target": "id=text",
    "value": "Hello world!!!"
    
// sideeX .json

    "name": "storeEval",
    "target": "0",
    "value": "waitVar"
    
    "name": "WHILE",
    "target": "${waitVar} == 0",
    "value": ""
    
    "name": "storeText",
    "target": "id=text",
    "value": "id=text"
    
    "name": "IF",
    "target": "\"${id=text}\" == \"Hello World!!!\"",
    "value": ""
    
    "name": "storeEval",
    "target": "1",
    "value": "waitVar"
    
    "name": "END",
    "target": "",
    "value": ""
    
    "name": "END",
    "target": "",
    "value": ""

WHILE

Selenium SideeX
command namd WHILE WHILE
Target A JavaScript expression that returns a boolean result A JavaScript expression that returns a boolean result
Value An optional argument that specifies the maximum number of times a looping control flow command can execute. This protects against infinite loops. The defaults value is set to 1000. Maximum number of loops. A blank value means no maximum number restriction.
Warning N/A
Example:
// selenium .side
    "command": "WHILE",
    "target": "${i}<3",
    "value": ""
    
// sideeX .json
    "name": "WHILE",
    "target": "${i}<3",
    "value": ""
    
With loop limit: 
// selenium .side
    "command": "WHILE",
    "target": "$1==1",
    "value": "3"
    
// sideeX .json
    "command": "WHILE",
    "target": "$1==1",
    "value": "3"

Reference

Selenium IDE commands
SideeX commands