|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.selenium.android.library.ViewClientWrapper
public class ViewClientWrapper
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));
| Constructor Summary | |
|---|---|
ViewClientWrapper(java.lang.String className,
java.lang.Object client)
|
|
| Method Summary | |
|---|---|
void |
setDriver(AndroidWebDriver driver)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewClientWrapper(java.lang.String className,
java.lang.Object client)
className - the fully qualified class name of the client's
class name.client - the client to use. Typically this client will be a
WebViewClient (or extend the latter). If not this client must have
the same API as WebViewClient. Additionally this client view must
implement the DriverProvider interface.| Method Detail |
|---|
public void setDriver(AndroidWebDriver driver)
setDriver in interface DriverProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||