io.selendroid.server.model
Class SelendroidWebDriver
java.lang.Object
io.selendroid.server.model.SelendroidWebDriver
public class SelendroidWebDriver
- extends Object
|
Method Summary |
void |
back()
|
void |
clearCurrentAlertMessage()
|
Object |
executeAsyncJavascript(String toExecute,
org.json.JSONArray args,
KnownElements ke)
|
Object |
executeAtom(AndroidAtoms atom,
org.json.JSONArray args,
KnownElements ke)
|
Object |
executeAtom(AndroidAtoms atom,
KnownElements ke,
Object... args)
|
Object |
executeScript(String script)
|
Object |
executeScript(String script,
org.json.JSONArray args,
KnownElements ke)
|
Object |
executeScript(String script,
Object args,
KnownElements ke)
|
void |
forward()
|
void |
frame(AndroidWebElement frameElement)
|
void |
frame(int index)
|
void |
frame(String frameNameOrId)
|
void |
get(String url)
|
String |
getContextHandle()
|
Set<Cookie> |
getCookies(String url)
|
String |
getCurrentAlertMessage()
|
String |
getCurrentUrl()
|
String |
getTitle()
|
TouchScreen |
getTouch()
|
android.webkit.WebView |
getWebview()
|
String |
getWindowSource()
|
protected void |
init(String handle)
|
boolean |
isAlertPresent()
|
void |
refresh()
|
void |
remove(String url,
String name)
|
void |
removeAllCookie(String url)
|
void |
setAsyncScriptTimeout(long timeout)
|
void |
setCookies(String url,
Cookie cookie)
|
void |
switchToDefaultContent()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SelendroidWebDriver
public SelendroidWebDriver(ServerInstrumentation serverInstrumentation,
String handle)
getContextHandle
public String getContextHandle()
executeAtom
public Object executeAtom(AndroidAtoms atom,
KnownElements ke,
Object... args)
executeAtom
public Object executeAtom(AndroidAtoms atom,
org.json.JSONArray args,
KnownElements ke)
throws org.json.JSONException
- Throws:
org.json.JSONException
executeScript
public Object executeScript(String script)
executeScript
public Object executeScript(String script,
org.json.JSONArray args,
KnownElements ke)
executeScript
public Object executeScript(String script,
Object args,
KnownElements ke)
getCurrentUrl
public String getCurrentUrl()
get
public void get(String url)
getWindowSource
public String getWindowSource()
throws org.json.JSONException
- Throws:
org.json.JSONException
init
protected void init(String handle)
getTouch
public TouchScreen getTouch()
executeAsyncJavascript
public Object executeAsyncJavascript(String toExecute,
org.json.JSONArray args,
KnownElements ke)
getTitle
public String getTitle()
getWebview
public android.webkit.WebView getWebview()
getCookies
public Set<Cookie> getCookies(String url)
removeAllCookie
public void removeAllCookie(String url)
remove
public void remove(String url,
String name)
setCookies
public void setCookies(String url,
Cookie cookie)
frame
public void frame(int index)
throws org.json.JSONException
- Throws:
org.json.JSONException
frame
public void frame(String frameNameOrId)
throws org.json.JSONException
- Throws:
org.json.JSONException
frame
public void frame(AndroidWebElement frameElement)
switchToDefaultContent
public void switchToDefaultContent()
back
public void back()
forward
public void forward()
refresh
public void refresh()
isAlertPresent
public boolean isAlertPresent()
getCurrentAlertMessage
public String getCurrentAlertMessage()
clearCurrentAlertMessage
public void clearCurrentAlertMessage()
setAsyncScriptTimeout
public void setAsyncScriptTimeout(long timeout)
Copyright © 2014. All rights reserved.