public class AppiumJsCommandExtractor extends Object
| Constructor and Description |
|---|
AppiumJsCommandExtractor() |
| Modifier and Type | Method and Description |
|---|---|
static com.applitools.eyes.Trigger |
extractTrigger(Map<String,org.openqa.selenium.WebElement> elementsIds,
org.openqa.selenium.Dimension viewportSize,
String script,
Object... args)
Given an command and it's 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 com.applitools.eyes.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 © 2013. All rights reserved.