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
-
-
Field Summary
-
Fields inherited from class com.intuit.karate.driver.WebDriver
command, http, logger, open, options, specCompliant
-
Fields inherited from interface com.intuit.karate.driver.Driver
METHOD_NAMES
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAppiumDriver(MobileDriverOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringattribute(String locator, String name)Elementclear(String locator)Elementclick(String locator)voidclose()protected Base64.DecodergetDecoder()DriverOptionsgetOptions()voidhideKeyboard()protected <T> TretryIfEnabled(String locator, java.util.function.Supplier<T> action)voidsaveRecordingScreen(String fileName)voidsaveRecordingScreen(String fileName, boolean embed)Objectscript(String expression)Objectscript(String expression, List<Map<String,Object>> args)Objectscript(String expression, Map<String,Object> args)protected StringselectorPayload(String id)voidsetContext(String context)StringstartRecordingScreen()StringstartRecordingScreen(Map<String,Object> payload)StringstopRecordingScreen()StringstopRecordingScreen(Map<String,Object> payload)Stringtext(String locator)ElementwaitForText(String locator, String expected)-
Methods inherited from class com.intuit.karate.driver.WebDriver
actions, back, checkForSpecCompliance, clearCookies, cookie, cookie, deleteCookie, dialog, dialog, elementId, elementIds, enabled, eval, eval, focus, forward, fullscreen, getCookies, getDialogText, getDimensions, getElementKeys, getHttp, getJsonForFrame, getJsonForHandle, getJsonForInput, getJsonForLegacyInput, getPages, getSessionId, getTitle, getUrl, html, input, isCookieError, isJavaScriptError, isLocatorError, isSpecCompliant, 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:
selectorPayloadin 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:
getDecoderin classWebDriver
-
close
public void close()
-
retryIfEnabled
protected <T> T retryIfEnabled(String locator, java.util.function.Supplier<T> action)
- Overrides:
retryIfEnabledin classWebDriver
-
getOptions
public DriverOptions getOptions()
- Specified by:
getOptionsin interfaceDriver- Overrides:
getOptionsin classWebDriver
-
-