Sha256: fca1ed63e9adc55bb8928af7e22adac6ae1cf69311d56a4a800782531336183c
Contents?: true
Size: 867 Bytes
Versions: 32
Compression:
Stored size: 867 Bytes
Contents
package sh.calaba.instrumentationbackend.actions.webview; import sh.calaba.instrumentationbackend.Result; import sh.calaba.instrumentationbackend.actions.Action; import android.webkit.WebView; public class DumpBodyHtml implements Action { @Override public Result execute(String... args) { Result result = Result.successResult(); for (CalabashChromeClient ccc : CalabashChromeClient.findAndPrepareWebViews()) { WebView webView = ccc.getWebView(); webView.loadUrl("javascript:(function() {" + "prompt('calabash:' + document.body.innerHTML);" + "})()"); String r = ccc.getResult(); System.out.println("Html:"); System.out.println("" + r); result.addBonusInformation(r); } return result; } @Override public String key() { return "dump_body_html"; } }
Version data entries
32 entries across 32 versions & 1 rubygems