public class AppiumJsCommandExtractor extends Object
Constructor and Description |
---|
AppiumJsCommandExtractor() |
Modifier and Type | Method and Description |
---|---|
static Trigger |
extractTrigger(Map<String,org.openqa.selenium.WebElement> elementsIds,
org.openqa.selenium.Dimension viewportSize,
String script,
Object... args)
Given a command and its parameters, returns the equivalent trigger.
|
static boolean |
isAppiumJsCommand(String script)
Used for identifying if a javascript script is a command to Appium.
|
public static boolean isAppiumJsCommand(String script)
script
- The script to test whether it's an Appium command.public static Trigger extractTrigger(Map<String,org.openqa.selenium.WebElement> elementsIds, org.openqa.selenium.Dimension viewportSize, String script, Object... args)
elementsIds
- A mapping of known elements' IDs to elements.viewportSize
- The dimensions of the current viewportscript
- The Appium command from which the trigger would be
extractedargs
- The trigger's parameters.Copyright © 2019. All rights reserved.