io.selendroid.server.model
Interface SelendroidDriver
- All Known Implementing Classes:
- DefaultSelendroidDriver
public interface SelendroidDriver
findElement
AndroidElement findElement(By by)
findElements
List<AndroidElement> findElements(By by)
getCurrentUrl
String getCurrentUrl()
getSession
Session getSession()
getSessionCapabilities
org.json.JSONObject getSessionCapabilities(String sessionId)
getFullWindowTree
org.json.JSONObject getFullWindowTree()
getWindowSource
String getWindowSource()
initializeSession
String initializeSession(org.json.JSONObject desiredCapabilities)
stopSession
void stopSession()
switchContext
void switchContext(String type)
takeScreenshot
byte[] takeScreenshot()
getKeyboard
Keyboard getKeyboard()
getTitle
String getTitle()
get
void get(String url)
getTouch
TouchScreen getTouch()
addCookie
void addCookie(String url,
Cookie cookie)
deleteCookie
void deleteCookie(String url)
deleteNamedCookie
void deleteNamedCookie(String url,
String name)
getCookies
Set<Cookie> getCookies(String url)
executeScript
Object executeScript(String script,
org.json.JSONArray args)
executeScript
Object executeScript(String script,
Object... args)
executeAsyncScript
Object executeAsyncScript(String script,
org.json.JSONArray args)
getContext
String getContext()
getContexts
Set<String> getContexts()
getWindowSize
Dimension getWindowSize()
setFrameContext
void setFrameContext(Object index)
throws org.json.JSONException
- Throws:
org.json.JSONException
back
void back()
forward
void forward()
refresh
void refresh()
isAlertPresent
boolean isAlertPresent()
getAlertText
String getAlertText()
acceptAlert
void acceptAlert()
dismissAlert
void dismissAlert()
setAlertText
void setAlertText(CharSequence... keysToSend)
getOrientation
ScreenOrientation getOrientation()
rotate
void rotate(ScreenOrientation orientation)
setAsyncTimeout
void setAsyncTimeout(long timeout)
isAirplaneMode
boolean isAirplaneMode()
Copyright © 2014. All rights reserved.