io.selendroid.android
Class WebViewKeySender
java.lang.Object
io.selendroid.android.InstrumentedKeySender
io.selendroid.android.WebViewKeySender
- All Implemented Interfaces:
- KeySender
public class WebViewKeySender
- extends InstrumentedKeySender
|
Constructor Summary |
WebViewKeySender(android.app.Instrumentation instrumentation,
android.webkit.WebView webview)
|
|
Method Summary |
void |
send(CharSequence text)
Sends key strokes to the given text to the element in focus within the webview. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebViewKeySender
public WebViewKeySender(android.app.Instrumentation instrumentation,
android.webkit.WebView webview)
send
public void send(CharSequence text)
- Sends key strokes to the given text to the element in focus within the webview.
Note: This assumes that the focus has been set before on the element at sake.
- Specified by:
send in interface KeySender- Overrides:
send in class InstrumentedKeySender
- Parameters:
text -
Copyright © 2014. All rights reserved.