public String getWebUrl ( ) { if ( config . commandLogging ) { Log . d ( config . commandLoggingTag , "getWebUrl()" ) ; } final WebView webView = waiter . waitForAndGetView ( 0 , WebView . class ) ; if ( webView == null ) Assert . fail ( "WebView is not found!" ) ; instrumentation . runOnMainSync ( new Runnable ( ) { public void run ( ) { webUrl = webView . getUrl ( ) ; } } ) ; return webUrl ; }
Returns the current web page URL .