Keyword test - How check If image exist
Hello, For test a smartphone application, I want find an Image between other images and touch this. I've defined in Test Complete the image I would found. If this Image is visible at the screen t the beginning of the test, all works correctly. But if image is not visible (slide needed) , It doesn't work. I want to make a test like this (using keymord, I'm not very comfortable wth scripting) : Label : If Image exists Touch Image Else bottom slide Goto label End if But in condition of "IF...THEN" fnction, I can't find a test about visibility of an Image. I tried also While loop , but i can't find a test about visibility of an image.4.1KViews0likes8CommentsExample 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 ?4.4KViews0likes1Comment