org.openqa.selenium.android.library
Class DefaultWebViewFactory

java.lang.Object
  extended by org.openqa.selenium.android.library.DefaultWebViewFactory
All Implemented Interfaces:
ViewFactory

public class DefaultWebViewFactory
extends Object
implements ViewFactory

Provides a default ViewAdapter to be used by WebDriver. This ViewAdapter contains a view with the same settings as the Android browser. Use this if you want to use WebDriver with a view with the same settings as the Android browser.


Constructor Summary
DefaultWebViewFactory()
           
 
Method Summary
 ViewAdapter createNewView(android.app.Activity activity)
          Creates a rendering view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWebViewFactory

public DefaultWebViewFactory()
Method Detail

createNewView

public ViewAdapter createNewView(android.app.Activity activity)
Description copied from interface: ViewFactory
Creates a rendering view. This should return a WebView, or an object with the same API as WebView.

Specified by:
createNewView in interface ViewFactory
Parameters:
activity - the activity to attach the view to.
Returns:
a ViewAdapter.


Copyright © 2013. All Rights Reserved.