This class wraps a view client that must have the *same* API as
WebViewClient. The underlying client will be used by WebDriver to listen to
interesting events on the page.
Sample usage:
// If the underlying view is a WebView you can use WebDriver's default
// view client DefaultViewClient as follow.
ViewClientWrapper viewWrapper = new ViewClientWrapper(
"android.webkit.WebViewClient", new DefaultViewClient());
// If the underlying view is a WebView and it has custom WebViewClient
// settings, use the DefaultViewClient as follow:
class MyCustomClient extends WebViewClient {
...
}
MyCustomClient myClient = new MyCustomClient();
ViewClientWrapper viewWrapper = new ViewClientWrapper(
"android.webkit.WebViewClient", new DefaultViewClient(myClient));