io.selendroid.server.model
Interface SelendroidDriver

All Known Implementing Classes:
DefaultSelendroidDriver

public interface SelendroidDriver


Method Summary
 void acceptAlert()
           
 void addCookie(String url, Cookie cookie)
           
 void back()
           
 void deleteCookie(String url)
           
 void deleteNamedCookie(String url, String name)
           
 void dismissAlert()
           
 Object executeAsyncScript(String script, org.json.JSONArray args)
           
 Object executeScript(String script, org.json.JSONArray args)
           
 Object executeScript(String script, Object... args)
           
 AndroidElement findElement(By by)
           
 List<AndroidElement> findElements(By by)
           
 void forward()
           
 void get(String url)
           
 String getAlertText()
           
 String getContext()
           
 Set<String> getContexts()
           
 Set<Cookie> getCookies(String url)
           
 String getCurrentUrl()
           
 org.json.JSONObject getFullWindowTree()
           
 Keyboard getKeyboard()
           
 ScreenOrientation getOrientation()
           
 Session getSession()
           
 org.json.JSONObject getSessionCapabilities(String sessionId)
           
 String getTitle()
           
 TouchScreen getTouch()
           
 Dimension getWindowSize()
           
 String getWindowSource()
           
 String initializeSession(org.json.JSONObject desiredCapabilities)
           
 boolean isAirplaneMode()
           
 boolean isAlertPresent()
           
 void refresh()
           
 void rotate(ScreenOrientation orientation)
           
 void setAlertText(CharSequence... keysToSend)
           
 void setAsyncTimeout(long timeout)
           
 void setFrameContext(Object index)
           
 void stopSession()
           
 void switchContext(String type)
           
 byte[] takeScreenshot()
           
 

Method Detail

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.