Package com.intuit.karate.driver.appium
Class AppiumDriver
- java.lang.Object
-
- com.intuit.karate.driver.WebDriver
-
- com.intuit.karate.driver.appium.AppiumDriver
-
- Direct Known Subclasses:
AndroidDriver
,IosDriver
public abstract class AppiumDriver extends WebDriver
- Author:
- babusekaran
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AppiumDriver(MobileDriverOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
attribute(String locator, String name)
Element
clear(String locator)
Element
click(String locator)
void
close()
protected Base64.Decoder
getDecoder()
DriverOptions
getOptions()
void
hideKeyboard()
protected <T> T
retryIfEnabled(String locator, java.util.function.Supplier<T> action)
void
saveRecordingScreen(String fileName)
void
saveRecordingScreen(String fileName, boolean embed)
Object
script(String expression)
Object
script(String expression, List<Map<String,Object>> args)
Object
script(String expression, Map<String,Object> args)
protected String
selectorPayload(String id)
void
setContext(String context)
String
startRecordingScreen()
String
startRecordingScreen(Map<String,Object> payload)
String
stopRecordingScreen()
String
stopRecordingScreen(Map<String,Object> payload)
String
text(String locator)
Element
waitForText(String locator, String expected)
-
Methods inherited from class com.intuit.karate.driver.WebDriver
actions, back, clearCookies, cookie, cookie, deleteCookie, dialog, dialog, elementId, elementIds, enabled, eval, eval, focus, forward, fullscreen, getCookies, getDialogText, getDimensions, getElementKey, getHttp, getJsonForFrame, getJsonForHandle, getJsonForInput, getPages, getSessionId, getTitle, getUrl, html, input, isCookieError, isJavaScriptError, isLocatorError, isTerminated, maximize, minimize, pdf, position, position, property, quit, refresh, reload, screenshot, screenshot, select, select, setDimensions, setUrl, submit, switchFrame, switchFrame, switchPage, switchPage, timeout, timeout, value, value, waitUntil
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.intuit.karate.driver.Driver
above, activate, afterScenario, below, delay, exists, highlight, highlight, highlightAll, highlightAll, input, input, input, keys, leftOf, locate, locateAll, locateAll, methodNames, mouse, mouse, mouse, near, onFailure, optional, retry, retry, retry, rightOf, screenshot, screenshot, script, scriptAll, scriptAll, scroll, setCookies, waitFor, waitForAny, waitForAny, waitForEnabled, waitForResultCount, waitForResultCount, waitForUrl, waitUntil, waitUntil
-
Methods inherited from interface com.intuit.karate.core.Plugin
getRuntime
-
-
-
-
Constructor Detail
-
AppiumDriver
protected AppiumDriver(MobileDriverOptions options)
-
-
Method Detail
-
selectorPayload
protected String selectorPayload(String id)
- Overrides:
selectorPayload
in classWebDriver
-
setContext
public void setContext(String context)
-
hideKeyboard
public void hideKeyboard()
-
startRecordingScreen
public String startRecordingScreen()
-
stopRecordingScreen
public String stopRecordingScreen()
-
saveRecordingScreen
public void saveRecordingScreen(String fileName, boolean embed)
-
saveRecordingScreen
public void saveRecordingScreen(String fileName)
-
getDecoder
protected Base64.Decoder getDecoder()
- Overrides:
getDecoder
in classWebDriver
-
close
public void close()
-
retryIfEnabled
protected <T> T retryIfEnabled(String locator, java.util.function.Supplier<T> action)
- Overrides:
retryIfEnabled
in classWebDriver
-
getOptions
public DriverOptions getOptions()
- Specified by:
getOptions
in interfaceDriver
- Overrides:
getOptions
in classWebDriver
-
-