WebDriver
Obsah
Description
Alias: WD
Runs the command via WebDriver.
Runs the command specified by the Command parameter via WebDriver.
Input parameters
Command
Type String
Command for WebDriver
- acceptAlert
- back
- clear
- Target=Element
- click
- Target=Element
- close
- closeWindow
- deleteCookie
- Target=Cookie name
- deleteCookies
- dismissAlert
- driver
- Target=http://seleniumServerHost:port | empty (= http://localhost:4444)
- Value=Firefox | Chrome | InternetExplorer | Edge | Opera | Safari
- executeAsyncScript
- Target=Script
- Value=Optional script parameters
- Output=Script return value
- executeScript
- Target=Script
- Value=Optional script parameters
- Output=Script return value
- forward
- fullscreenWindow
- getAlertText
- Output=Alert text
- getAttribute
- Target=Element
- Value=Attribute
- Output=Attribute value
- getComputedLabel
- Target=Element
- Output=Element label
- getComputedRole
- Target=Element
- Output=Elementu role
- getCookie
- Target=Cookie name
- Output=Cookie in JSON format
- getCookies
- Output=Cookies in JSON format
- getCSSValue
- Target=Element
- Value=CSS property
- Output=CSS property value
- getElementCount
- Target=Element
- Output=Element count
- getElementScreenshot
- Target=Element
- Value=File name (PNG)
- getProperty
- Target=Element
- Value=Property
- Output=Property value
- getRect
- Target=Element
- Output=Element position and size
- getScreenshot
- Value=File name (PNG)
- getSource
- Output=Page source code
- getTagName
- Target=Element
- Output=Element tag name
- getText
- Target=Element
- Output=Text
- getTimeout
- Target=Script | PageLoad | Implicit
- Output=Timeout in ms
- getTitle
- Output=Page title
- getUrl
- Output=Page url
- getWindow
- Output=Active window handle
- getWindowRect
- Output=Window position and size
- getWindows
- Output=Coma separated window handles
- getWindowSize
- Output=Window size
- isEnabled
- Target=Element
- Output=0 | 1
- isSelected
- Target=Element
- Output=0 | 1
- maximizeWindow
- minimizeWindow
- navigate (= setUrl)
- newWindow
- Output=New window handle
- open (= setUrl)
- refresh
- sendAlertText
- Value=User prompt text
- sendKeys
- Target=Element
- Value=Text | ${KEY_ENTER}
- setCookie
- Target=Cookie in JSON format | Cookie name and Value=Cookie value
- setTimeout
- Target=Script | PageLoad | Implicit
- Value=Timeout in ms
- setUrl
- Target=Url
- setWindowRect
- Target=Window position and size
- setWindowSize
- Target=Window size
- switchToFrame
- Target=Frame | FrameIndex | Index=FrameIndex | empty (= main frame)
- switchToParentFrame
- switchToWindow
- Target=Window handle
- type (= sendKeys)
Target
Type String
The target of the command.
Value
Type String
The value of the command parameter.
Enabled
Type Number
Enables or disables the command. If the value is 0, the command will not be executed.
PreWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
PostWait
Type Number
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
Output parameters
Output
Type String
Výstup příkazu