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