org.openqa.selenium.android.library
Interface ViewFactory

All Known Implementing Classes:
DefaultWebViewFactory

public interface ViewFactory

This interface should be implemented when using WebDriver with custom Views (typically a custom WebView). WebDriver will call the createNewView method to create new Views when needed, for instance when cliking on a link that opens a new window.


Method Summary
 ViewAdapter createNewView(android.app.Activity activity)
          Creates a rendering view.
 

Method Detail

createNewView

ViewAdapter createNewView(android.app.Activity activity)
Creates a rendering view. This should return a WebView, or an object with the same API as WebView.

Parameters:
activity - the activity to attach the view to.
Returns:
a ViewAdapter.


Copyright © 2013. All Rights Reserved.