io.selendroid.android
Class WebViewKeySender

java.lang.Object
  extended by io.selendroid.android.InstrumentedKeySender
      extended by io.selendroid.android.WebViewKeySender
All Implemented Interfaces:
KeySender

public class WebViewKeySender
extends InstrumentedKeySender


Field Summary
 
Fields inherited from class io.selendroid.android.InstrumentedKeySender
instrumentation
 
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 io.selendroid.android.InstrumentedKeySender
getKeyboard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebViewKeySender

public WebViewKeySender(android.app.Instrumentation instrumentation,
                        android.webkit.WebView webview)
Method Detail

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.