Knowledge Base Article

Home Page > Knowledge Base > Spira Platform > RemoteLaunch

Article Running Selenium IDE Scripts using RemoteLaunch

by Adam S on Wednesday, January 14, 2015

When you use RemoteLaunch with SpiraTest / SpiraTeam, you have the ability to run Selenium IDE scripts written in the Selenese format as well as WebDriver scripts run using specific language bindings. However the RemoteLaunch Selenium2 plugin only handles the Selenium IDE commands that have a corresponding Selenium WebDriver equivalent or ones that RemoteLaunch can handle natively (e.g. pause).

The following Selenium IDE commands can be handled by RemoteLaunch and the Selenium2 plugin:

  • "addLocationStrategy" ==> AddLocationStrategy(this.elementFinder)
  • "addSelection" ==> AddSelection(this.elementFinder)
  • "altKeyDown" ==> AltKeyDown(keyState)
  • "altKeyUp" ==> AltKeyUp(keyState)
  • "assignId" ==> AssignId(this.elementFinder)
  • "attachFile" ==> AttachFile(this.elementFinder)
  • "captureScreenshotToString" ==> CaptureScreenshotToString()
  • "click" ==> Click(this.alertOverride, this.elementFinder)
  • "clickAt" ==> ClickAt(this.alertOverride, this.elementFinder)
  • "check" ==> Check(this.alertOverride, this.elementFinder)
  • "chooseCancelOnNextConfirmation" ==> SetNextConfirmationState(false)
  • "chooseOkOnNextConfirmation" ==> SetNextConfirmationState(true)
  • "close" ==> Close()
  • "createCookie" ==> CreateCookie()
  • "controlKeyDown" ==> ControlKeyDown(keyState)
  • "controlKeyUp" ==> ControlKeyUp(keyState)
  • "deleteAllVisibleCookies" ==> DeleteAllVisibleCookies()
  • "deleteCookie" ==> DeleteCookie()
  • "doubleClick" ==> DoubleClick(this.elementFinder)
  • "dragdrop" ==> DragAndDrop(this.elementFinder)
  • "dragAndDrop" ==> DragAndDrop(this.elementFinder)
  • "dragAndDropToObject" ==> DragAndDropToObject(this.elementFinder)
  • "fireEvent" ==> FireEvent(this.elementFinder)
  • "focus" ==> FireNamedEvent(this.elementFinder, "focus")
  • "getAlert" ==> GetAlert(this.alertOverride)
  • "getAllButtons" ==> GetAllButtons()
  • "getAllFields" ==> GetAllFields()
  • "getAllLinks" ==> GetAllLinks()
  • "getAllWindowTitles" ==> GetAllWindowTitles()
  • "getAttribute" ==> GetAttribute(this.elementFinder)
  • "getAttributeFromAllWindows" ==> GetAttributeFromAllWindows()
  • "getBodyText" ==> GetBodyText()
  • "getConfirmation" ==> GetConfirmation(this.alertOverride)
  • "getCookie" ==> GetCookie()
  • "getCookieByName" ==> GetCookieByName()
  • "getElementHeight" ==> GetElementHeight(this.elementFinder)
  • "getElementIndex" ==> GetElementIndex(this.elementFinder)
  • "getElementPositionLeft" ==> GetElementPositionLeft(this.elementFinder)
  • "getElementPositionTop" ==> GetElementPositionTop(this.elementFinder)
  • "getElementWidth" ==> GetElementWidth(this.elementFinder)
  • "getEval" ==> GetEval(this.mutator)
  • "getHtmlSource" ==> GetHtmlSource()
  • "getLocation" ==> GetLocation()
  • "getSelectedId" ==> FindFirstSelectedOptionProperty(this.elementFinder, "id")
  • "getSelectedIds" ==> FindSelectedOptionProperties(this.elementFinder, "id")
  • "getSelectedIndex" ==> FindFirstSelectedOptionProperty(this.elementFinder, "index")
  • "getSelectedIndexes" ==> FindSelectedOptionProperties(this.elementFinder, "index")
  • "getSelectedLabel" ==> FindFirstSelectedOptionProperty(this.elementFinder, "text")
  • "getSelectedLabels" ==> FindSelectedOptionProperties(this.elementFinder, "text")
  • "getSelectedValue" ==> FindFirstSelectedOptionProperty(this.elementFinder, "value")
  • "getSelectedValues" ==> FindSelectedOptionProperties(this.elementFinder, "value")
  • "getSelectOptions" ==> GetSelectOptions(this.elementFinder)
  • "getSpeed" ==> NoOp("0")
  • "getTable" ==> GetTable(this.elementFinder)
  • "getText" ==> GetText(this.elementFinder)
  • "getTitle" ==> GetTitle()
  • "getValue" ==> GetValue(this.elementFinder)
  • "getXpathCount" ==> GetXpathCount()
  • "getCssCount" ==> GetCssCount()
  • "goBack" ==> GoBack()
  • "highlight" ==> Highlight(this.elementFinder)
  • "isAlertPresent" ==> IsAlertPresent(this.alertOverride)
  • "isChecked" ==> IsChecked(this.elementFinder)
  • "isConfirmationPresent" ==> IsConfirmationPresent(this.alertOverride)
  • "isCookiePresent" ==> IsCookiePresent()
  • "isEditable" ==> IsEditable(this.elementFinder)
  • "isElementPresent" ==> IsElementPresent(this.elementFinder)
  • "isOrdered" ==> IsOrdered(this.elementFinder)
  • "isSomethingSelected" ==> IsSomethingSelected()
  • "isTextPresent" ==> IsTextPresent()
  • "isVisible" ==> IsVisible(this.elementFinder)
  • "keyDown" ==> KeyEvent(this.elementFinder, keyState, "doKeyDown")
  • "keyPress" ==> TypeKeys(this.alertOverride, this.elementFinder)
  • "keyUp" ==> KeyEvent(this.elementFinder, keyState, "doKeyUp")
  • "metaKeyDown" ==> MetaKeyDown(keyState)
  • "metaKeyUp" ==> MetaKeyUp(keyState)
  • "mouseOver" ==> MouseEvent(this.elementFinder, "mouseover")
  • "mouseOut" ==> MouseEvent(this.elementFinder, "mouseout")
  • "mouseDown" ==> MouseEvent(this.elementFinder, "mousedown")
  • "mouseDownAt" ==> MouseEventAt(this.elementFinder, "mousedown")
  • "mouseMove" ==> MouseEvent(this.elementFinder, "mousemove")
  • "mouseMoveAt" ==> MouseEventAt(this.elementFinder, "mousemove")
  • "mouseUp" ==> MouseEvent(this.elementFinder, "mouseup")
  • "mouseUpAt" ==> MouseEventAt(this.elementFinder, "mouseup")
  • "open" ==> Open(this.baseUrl)
  • "openWindow" ==> OpenWindow(new GetEval(this.mutator))
  • "refresh" ==> Refresh()
  • "removeAllSelections" ==> RemoveAllSelections(this.elementFinder)
  • "removeSelection" ==> RemoveSelection(this.elementFinder)
  • "runScript" ==> RunScript(this.mutator)
  • "select" ==> SelectOption(this.alertOverride, this.elementFinder)
  • "selectFrame" ==> SelectFrame(windows)
  • "selectWindow" ==> SelectWindow(windows)
  • "setBrowserLogLevel" ==> NoOp(null)
  • "setContext" ==> NoOp(null)
  • "setSpeed" ==> NoOp(null)
  • "setTimeout" ==> SetTimeout(this.timer)
  • "shiftKeyDown" ==> ShiftKeyDown(keyState)
  • "shiftKeyUp" ==> ShiftKeyUp(keyState)
  • "submit" ==> Submit(this.alertOverride, this.elementFinder)
  • "type" ==> Selenium.Internal.SeleniumEmulation.Type(this.alertOverride, this.elementFinder, keyState)
  • "typeKeys" ==> TypeKeys(this.alertOverride, this.elementFinder)
  • "uncheck" ==> Uncheck(this.elementFinder)
  • "useXpathLibrary" ==> NoOp(null)
  • "waitForCondition" ==> WaitForCondition(this.mutator)
  • "waitForFrameToLoad" ==> NoOp(null)
  • "waitForPageToLoad" ==> WaitForPageToLoad()
  • "waitForPopUp" ==> WaitForPopup(windows)
  • "windowFocus" ==> WindowFocus()
  • "windowMaximize" ==> WindowMaximize()

In addition, the following commands can be handled by RemoteLaunch itself:

  • "clickAndWait" ==> Click(this.alertOverride, this.elementFinder) followed by pause
  • "pause" ==> RemoteLaunch pauses


Attachments
Article Info
Last Updated: 1/14/2015
Article ID: KB108
# Views: 841
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.