WebDriver/en: Porovnání verzí
(Založena nová stránka s textem „Command for WebDriver“) |
(Založena nová stránka s textem „*acceptAlert *back *clear **Target=Element *click **Target=Element *close *closeWindow *deleteCookie **Target=Cookie name *deleteCookies *dismissAlert *dri…“) |
||
| Řádek 29: | Řádek 29: | ||
*closeWindow | *closeWindow | ||
*deleteCookie | *deleteCookie | ||
| − | **Target= | + | **Target=Cookie name |
*deleteCookies | *deleteCookies | ||
*dismissAlert | *dismissAlert | ||
*driver | *driver | ||
| − | **Target=http://seleniumServerHost:port | + | **Target=http://seleniumServerHost:port | empty (= http://localhost:4444) |
**Value=Firefox | Chrome | InternetExplorer | Edge | Opera | Safari | **Value=Firefox | Chrome | InternetExplorer | Edge | Opera | Safari | ||
*executeAsyncScript | *executeAsyncScript | ||
| − | **Target= | + | **Target=Script |
| − | **Value= | + | **Value=Optional script parameters |
| − | **Output= | + | **Output=Script return value |
*executeScript | *executeScript | ||
| − | **Target= | + | **Target=Script |
| − | **Value= | + | **Value=Optional script parameters |
| − | **Output= | + | **Output=Script return value |
*forward | *forward | ||
*fullscreenWindow | *fullscreenWindow | ||
*getAlertText | *getAlertText | ||
| − | **Output= | + | **Output=Alert text |
*getAttribute | *getAttribute | ||
**Target=Element | **Target=Element | ||
| − | **Value= | + | **Value=Attribute |
| − | **Output= | + | **Output=Attribute value |
*getComputedLabel | *getComputedLabel | ||
**Target=Element | **Target=Element | ||
| − | **Output= | + | **Output=Element label |
*getComputedRole | *getComputedRole | ||
**Target=Element | **Target=Element | ||
| − | **Output=role | + | **Output=Elementu role |
*getCookie | *getCookie | ||
| − | **Target= | + | **Target=Cookie name |
| − | **Output=Cookie | + | **Output=Cookie in JSON format |
*getCookies | *getCookies | ||
| − | **Output= | + | **Output=Cookies in JSON format |
*getCSSValue | *getCSSValue | ||
**Target=Element | **Target=Element | ||
**Value=CSS property | **Value=CSS property | ||
| − | **Output= | + | **Output=CSS property value |
*getElementCount | *getElementCount | ||
**Target=Element | **Target=Element | ||
| − | **Output= | + | **Output=Element count |
*getElementScreenshot | *getElementScreenshot | ||
**Target=Element | **Target=Element | ||
| − | **Value= | + | **Value=File name (PNG) |
*getProperty | *getProperty | ||
**Target=Element | **Target=Element | ||
**Value=Property | **Value=Property | ||
| − | **Output= | + | **Output=Property value |
*getRect | *getRect | ||
**Target=Element | **Target=Element | ||
| − | **Output= | + | **Output=Element position and size |
*getScreenshot | *getScreenshot | ||
| − | **Value= | + | **Value=File name (PNG) |
*getSource | *getSource | ||
| − | **Output= | + | **Output=Page source code |
*getTagName | *getTagName | ||
**Target=Element | **Target=Element | ||
| − | **Output= | + | **Output=Element tag name |
*getText | *getText | ||
**Target=Element | **Target=Element | ||
| Řádek 91: | Řádek 91: | ||
*getTimeout | *getTimeout | ||
**Target=Script | PageLoad | Implicit | **Target=Script | PageLoad | Implicit | ||
| − | **Output=Timeout | + | **Output=Timeout in ms |
*getTitle | *getTitle | ||
| − | **Output= | + | **Output=Page title |
*getUrl | *getUrl | ||
| − | **Output= | + | **Output=Page url |
*getWindow | *getWindow | ||
| − | **Output= | + | **Output=Active window handle |
*getWindowRect | *getWindowRect | ||
| − | **Output= | + | **Output=Window position and size |
*getWindows | *getWindows | ||
| − | **Output= | + | **Output=Coma separated window handles |
*getWindowSize | *getWindowSize | ||
| − | **Output= | + | **Output=Window size |
*isEnabled | *isEnabled | ||
**Target=Element | **Target=Element | ||
| Řádek 114: | Řádek 114: | ||
*navigate (= setUrl) | *navigate (= setUrl) | ||
*newWindow | *newWindow | ||
| − | **Output= | + | **Output=New window handle |
*open (= setUrl) | *open (= setUrl) | ||
*refresh | *refresh | ||
*sendAlertText | *sendAlertText | ||
| − | **Value= | + | **Value=User prompt text |
*sendKeys | *sendKeys | ||
**Target=Element | **Target=Element | ||
**Value=Text | ${KEY_ENTER} | **Value=Text | ${KEY_ENTER} | ||
*setCookie | *setCookie | ||
| − | **Target=Cookie | + | **Target=Cookie in JSON format | Cookie name and Value=Cookie value |
*setTimeout | *setTimeout | ||
**Target=Script | PageLoad | Implicit | **Target=Script | PageLoad | Implicit | ||
| − | **Value=Timeout | + | **Value=Timeout in ms |
*setUrl | *setUrl | ||
**Target=Url | **Target=Url | ||
*setWindowRect | *setWindowRect | ||
| − | **Target= | + | **Target=Window position and size |
*setWindowSize | *setWindowSize | ||
| − | **Target= | + | **Target=Window size |
*switchToFrame | *switchToFrame | ||
| − | **Target=Frame | FrameIndex | Index=FrameIndex | | + | **Target=Frame | FrameIndex | Index=FrameIndex | empty (= main frame) |
*switchToParentFrame | *switchToParentFrame | ||
*switchToWindow | *switchToWindow | ||
| − | **Target= | + | **Target=Window handle |
*type (= sendKeys) | *type (= sendKeys) | ||
Verze z 27. 9. 2023, 12:36
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
Typ String
Cíl příkazu.
Value
Typ String
Hodnota parametru příkazu.
Enabled
Typ Number
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
PreWait
Typ Number
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
PostWait
Typ Number
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
Výstupní parametry
Output
Typ String
Výstup příkazu