WebDriver/en: Porovnání verzí

Z Wiki
Přejít na: navigace, hledání
(Založena nová stránka s textem „Enables or disables the command. If the value is 0, the command will not be executed.“)
 
(Není zobrazeno 11 mezilehlých verzí od 2 dalších uživatelů.)
Řádek 9: Řádek 9:
 
'''Runs the command via WebDriver.'''
 
'''Runs the command via WebDriver.'''
  
Runs the command specified by the [[Special:MyLanguage/#command-| Command]] parameter via WebDriver.
+
Runs the command specified by the [[Special:#command-| Command]] parameter via WebDriver.
  
 
== Input parameters ==
 
== Input parameters ==
Řádek 124: Řádek 124:
 
*setCookie
 
*setCookie
 
**Target=Cookie in JSON format | Cookie name and Value=Cookie value
 
**Target=Cookie in JSON format | Cookie name and Value=Cookie value
 +
*setText (= sendKeys)
 
*setTimeout
 
*setTimeout
 
**Target=Script | PageLoad | Implicit
 
**Target=Script | PageLoad | Implicit
Řádek 136: Řádek 137:
 
**Target=Frame | FrameIndex | Index=FrameIndex | empty (= main frame)
 
**Target=Frame | FrameIndex | Index=FrameIndex | empty (= main frame)
 
*switchToParentFrame
 
*switchToParentFrame
 +
*switchToShadowRoot
 +
**Target=Shadow root (= enter shadow root) | empty (= leave shadow root)
 
*switchToWindow
 
*switchToWindow
 
**Target=Window handle
 
**Target=Window handle
Řádek 160: Řádek 163:
 
=== PreWait ===
 
=== PreWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Prodleva v milisekundách před provedením příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
 
=== PostWait ===
 
=== PostWait ===
  
Typ [[Special:MyLanguage/Datové typy#Number | Number]]
+
Type [[Special:MyLanguage/Datové typy#Number | Number]]
  
Prodleva v milisekundách po provedení příkazu. Nemá žádný vliv je-li Enabled=0.
+
Delay in milliseconds before executing the command. It has no effect if Enabled=0.
  
== Výstupní parametry ==
+
== Output parameters ==
  
 
=== Output ===
 
=== Output ===
  
Typ [[Special:MyLanguage/Datové typy#String | String]]
+
Type [[Special:MyLanguage/Datové typy#String | String]]
  
Výstup příkazu
+
Command output

Aktuální verze z 30. 1. 2025, 12:16

Jiné jazyky:
English • ‎čeština

Description

Alias: WD

Runs the command via WebDriver.

Runs the command specified by the [[Special:#command-| 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
  • setText (= sendKeys)
  • 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
  • switchToShadowRoot
    • Target=Shadow root (= enter shadow root) | empty (= leave shadow root)
  • 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

Command output