Pandora: Documentation en: Compatible Selenium Commands

From Pandora FMS Wiki
Jump to: navigation, search

1 Compatible commands list

1.1 Internal Commands

  • run: Runs a test.
  • build_transaction: Preconstructs a transaction based on the past test (internal).
  • get_transaction: Returns the current transaction, always used to retrieve the results, the order of the phases and the variables.
  • sessions: Retrieves the list of sessions present in the hub.
  • kill_sessions: Deletes all existing sessions in the hub.

1.2 Extra Commands

  • extract: Combines 'source' and own code for extraction.
  • storeExtraction: Stores the result of the extraction in a variable.
  • dispatchEvent: Fires a Javascript event on a given element.
  • takeElementScreenshot: Takes a screenshot of a specific element.
  • phase_start: Starts a phase and transforms the test into a WUX transaction.
  • phase_end: Completes a phase.
  • clickAndWait: Simulates the behaviour of this Selenium 2 command in Selenium 3.
  • waitForPageToLoad: Simulates the behaviour of this command of Selenium 2 in Selenium 3.

1.3 Commands that generate modules

  • getValue: Extract a value:
getValue;module name;module type;REGEX capture
  • getScreenshot: Extract a screenshot:
getScreenshot;module name

Template warning.png

All own commands must appear in the test file (.side) as comments. Otherwise, it will fail to test the test in the Selenium extension.

 


1.4 Commands provided by the recording extension (v3)

  • addSelection
  • answerOnNextPrompt
  • assert
  • assertAlert
  • assertChecked
  • assertConfirmation
  • assertEditable
  • assertElementPresent
  • assertElementNotPresent
  • assertNotChecked
  • assertNotEditable
  • assertNotSelectedValue
  • assertNotText
  • assertPrompt
  • assertSelectedValue
  • assertSelectedLabel
  • assertText
  • assertTitle
  • assertValue
  • check
  • chooseCancelOnNextConfirmation
  • chooseCancelOnNextPrompt
  • chooseOkOnNextConfirmation
  • click
  • clickAt
  • close
  • doubleClick
  • doubleClickAt
  • dragAndDropToObject
  • echo
  • editContent
  • else
  • elseIf
  • end
  • executeScript
  • executeAsyncScript
  • if
  • mouseDown
  • mouseDownAt
  • mouseOver
  • mouseUp
  • mouseUpAt
  • open
  • pause
  • removeSelection
  • select
  • selectFrame
  • selectWindow
  • sendKeys
  • setSpeed
  • setWindowSize
  • store
  • storeAttribute
  • storeJson
  • storeText
  • storeTitle
  • storeValue
  • storeWindowHandle
  • storeXpathCount
  • submit
  • type
  • uncheck
  • verify
  • verifyChecked
  • verifyEditable
  • verifyElementPresent
  • verifyElementNotPresent
  • verifyNotChecked
  • verifyNotEditable
  • verifyNotSelectedValue
  • verifyNotText
  • verifySelectedLabel
  • verifySelectedValue
  • verifyText
  • verifyTitle
  • verifyValue
  • waitForElementEditable
  • waitForElementNotEditable
  • waitForElementNotPresent
  • waitForElementNotVisible
  • waitForElementPresent
  • waitForElementVisible
  • webdriverAnswerOnVisiblePrompt
  • webdriverChooseCancelOnVisibleConfirmation
  • chooseCancelOnNextPrompt
  • webdriverChooseOkOnVisibleConfirmation