Cannot focus a disabled or invisible window
I have followed all the instructions perfectly but still testcomplete couldn'tdisplay my mobile (ASUS Zenfone 2). Although it shows my handset is connected but always shows the message "Cannot focus a disabled or invisible window". Need your suggestion. Attachment will help you for better understanding. I have followed the following link instructions: https://support.smartbear.com/viewarticle/71876/#ID0EIC6.2KViews0likes6Commentssmartbear.example.orders is not detected on the Sony device
Hello Everyone, I am trying to run the Order application which has been provided with the Test Complete. I am able to instrument and launch the application using the scripts, but the process is not listed under the device. I am using TestComplte 11.11 on windows 7 64bit. with Sony Xperia Z4 Tablet which has Android version 5.0.2. I have installed latest Java SDK, Installed Android Debug bridge on the device and enabled all the developer settings. Object Spy detects all the application objects on the Normal desktop but not the Tabletscreen. Please suggest me on this. I am attaching the screen shots with this description.5.5KViews0likes5CommentsDevice loop does not return correct value for Aliases.Device.Name
I have a very simple device loop. And i have 2 devices connected to my laptop. One is an android device SM-G960W and another is an iphone. The issue i am noticing is that, when i put a debug point on the Log message here and check the value of the following, they return different values. Since 2 devices are connected, the above test will run for 2 iterations. Iteration 1: Iteration 2: While Mobile.Device().Name is returning the correct value, Aliases.Device.Name is always returns the 1st device that i connected to my machine out of the 2 devices connected. In the case above, Android device is connected first and Aliases.Device.Name is returning the android device for both the iterations. Any idea how to fix this issue? Thanks, Sridhar.Solved3.6KViews0likes5CommentsAndroid: Object spy cannot recognize child objects of the standard android datepicker
Hi Our app recently started using the standard android datepicker (shown below) and I cannot seem to get the object spy to recognize the individuel dates, only the container they are all in. The crosshairs from object spy could not be caught on the screenshot, but it is located over "5" right now, and only catches the entire container. I talked to my developers who can see the child items with their tools just fine, but testcomplete does not seem to be able to recognize them. I also tried doing a .childcount on the parent to the missing objects and it returned 0. Because this is So questions: 1. Is there any way for me to further try and locate these objects? 2.Since this is a standard android widget it must be either our implementation doing something weird, or a general problem in testcomplete to recognize it. It would be nice to know if the latter is the case, and if so, what the procedure is for making a bug report/getting it fixed.3.4KViews0likes4CommentsTestcomplete: How to set a cookie value in smartbear browser for an android app.
I am testing a android mobile app using Test complete. I am using the smartbear browser on the app for testing the website. I am looking for a way to set a particular cookie value before i proceed with my test. Is there a way to set a particular cookie value? Please help. Thanks, Sridhar.Solved3.1KViews0likes4CommentsThe Mock location unable to setup for Android and iOS devices with the Testcomplete methods
The Mock location is unable to set up for Android and iOS devices with the Testcomplete methods. I have tried with the below VB script with valid Lattitude and longitude values, the script result shows as with the given longitude and latitude values but when we check in google maps or in any other applications the location still shows the current location. SubMockGPSLocation CallMobile.SetCurrent("Nexus 7") ' Enable GPS Mobile.Device.GPS.GPSEnabled = true ' Enable the "Allow mock locations" property Mobile.Device.GPS.AllowMockLocations = true ' Obtain current location data Longt = Mobile.Device.GPS.Location.Longitude Lat = Mobile.Device.GPS.Location.Latitude Alt = Mobile.Device.GPS.Location.Altitude Acc = Mobile.Device.GPS.Location.Accuracy ' Output the location data CallLog.Message("The current device location is:") CallLog.Message("Longitude: "&Longt) CallLog.Message("Latitude: "&Lat) CallLog.Message("Altitude: "&Alt) CallLog.Message("Accuracy: "&Acc) ' Open Google Maps in the browser and pass the current coordinates as URL parameters CallBrowsers.Item(Browsers.btIExplorer).Run("http://maps.google.com/maps?q=loc:"&Lat&","&Longt) ' Change the coordinates Longt = Longt+0.005 Lat = Lat+0.005 ' Specify a mock location CallMobile.Device.GPS.SetLocation(Longt,Lat,Alt,Acc) ' Output the new location data CallLog.Message("The device mock location is:") CallLog.Message("Longitude: "&Longt) CallLog.Message("Latitude: "&Lat) CallLog.Message("Altitude: "&Alt) CallLog.Message("Accuracy: "&Acc) ' Open a new tab in the browser CallSys.Browser("iexplore").BrowserWindow(0).Keys("^t") CallDelay(1000) ' Open the new location in Google Maps CallSys.Browser("iexplore").Page("about:Tabs").ToUrl("http://maps.google.com/maps?q=loc:"&Lat&","&Longt) EndSub' Disable mock locations Mobile.Device.GPS.AllowMockLocations = false See AlsoSolved2.3KViews0likes5CommentsXamarin Testing
Hey guys, we are about to switch all of our apps to Xamarin and wish to continue UI Testing with TestComplete. However, we experience problems with the Object recognition on Android: Most objects have no id, some have an md5-hash as their id. It was so convenient on Android to have unique ids for most controls and this seems to be gone on Xamarin. Three questions concerning that: What are those md5-hashes based on, when do they change and is there any possibility to still set our own control id? Some objects appear twice with the same id but a different ObjectIndex. I know this phenomenon only from iOS, where the UI is dynamically created during runtime and sometimes UI controls don't get recycled properly so if you reopen the same view again, you might end up with to identical controls, one of them being invisible and the other one being visible. This is a pain in the bum on iOS since it can be quite hard sometimes to determine in TestComplete the instance that is currently visible. My hope is now that we can somehow get rid of that too, but I have no idea how. Screenshot of object ids: (1): md5-hashes, (2) Some objects appear twice Objects are only accessible to a certain level. For instance, we can access and interact with "md52....MasterDetailContainer" but its only child "View("NO_ID")" is inaccessible. TestComplete cannot show a screenshot of it in the ObjectBrowser and any interaction with it (including "Highlight on screen") results in an error. This applies to all of its children, too. This is especially important to solve as all of our UI controls are children of that MasterDetailContainer and having no access to its children renders the tests useless. TestComplete, the Xamarin Forms Designer and the Android UI Automator Viewer show a very different object hierarchy of the same view in the app. How can this be explained? I've been talking to the dev team about all this but as they are new to Xamarin, too, they don't know the answers neither. On the other hand, I know that most of those questions are very specific to Xamarin itself, but I hope to find someone here who has experience with both, Xamarin and TestComplete, to help us out. Greetings, vat2.2KViews0likes1CommentSupport for Xamarin Forms 3.4 or 4 yet to be released ?
Hello ! I am testing a mobile app on phones running Android OS. The app is developed with Xamarin Forms 3.4. I know Test Complete supports testing with Xamarin Forms 2.5. Do you know when will TestComplete support testing with Xamarin Forms 3.4 or higher? Regards,Solved2.1KViews0likes2Comments