Hansjohann
8 years agoNew Member
Example of evaluateJavascript() usage in Webview for Smartbearbrowser on Android device
Mobile.Device().Process("*SmartBearBrowser").FindChild("ObjectType", "WebView", 2).evaluateJavascript("(function() { return null; })();", new ValueCallback<String>() { @Override public void onReceiveValue(String s) { Log.d("LogName", s); // Prints the string 'null' NOT Java null } });
The above example doesn't seem to work (Error 100). I also can't create ValueCallback's in generell ...
Mobile.Device().Process("*SmartBearBrowser").FindChild("ObjectType", "WebView", 2).evaluateJavascript(script, ???)
Is were an Example on how to write the Statemant correctly in Testcomplete ?