WebDriver/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „Type Number“)
(Založena nová stránka s textem „Enables or disables the command. If the value is 0, the command will not be executed.“)
Řádek 156: Řádek 156:
 
Type [[Special:MyLanguage/Datové typy#Number | Number]]
 
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Povoluje nebo zakazuje příkaz. Při hodnotě 0 nebude příkaz proveden.
+
Enables or disables the command. If the value is 0, the command will not be executed.
  
 
=== PreWait ===
 
=== PreWait ===

Verze z 27. 9. 2023, 12:38

Jiné jazyky:
English • ‎čeština

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
  • 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

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