Appium inspector needs solution - appium

Appium inspector makes connection with iphone which helps to inspect element to write script based on that to perform test automation. But, for ipad, the Appium inspector makes connection but doesn’t render the screen on the inspector which makes it impossible to inspect the element. That is the main problem now which needs a solution.

You might have better luck posting your question here https://github.com/appium/appium-inspector/issues

Related

How can I check hints in Accessibility Inspector?

I'm wondering if there is a way to check the hints using Accessibility Inspector? Or any other way on iOS to debug the accessibility viewing the hints? Thanks!
As far as I know, accessibility hints are not displayed in Accessibility Inspector. What I tend to do instead is run the app and then launch layout inspector. After it loads you can select the view you are interested in and see accessibility labels, traits, hints, etc.
I am not sure why hints are not displayed in AI.

Accessibility Identifier not visible in Accessibility Inspector with iOS Simulator

I wanted to use the Accessibility Inspector to verify all the accessibility identifiers in my app running in the simulator (iOS 9.2).
Accessibility Inspector is able to return multiple accessibility fields but not the identifiers.
Any idea why and how I could see them ?
There is actually a way, and Chris Prince missed out on explaining how to get to it.
You start off by bringing up the inspector.
The bar above basically focuses the inspector to whatever process you need to inspect. In our case it should be simulator.
Edit: as pointed out by Dallas, you have to click on the left half revealing the possible targets. Click on the Simulator to have the Inspector target it.
Something to note that it seems that simulators have their own information to show. Focusing on the simulator will automatically add in the identifier and show the proper accessibility information.
voila!
I have only recently started using accessibility features, but at least as of Xcode9.1b2, accessibility identifiers are visible within the Accessibility Inspector. See for example:
You will never be able to (without changes from Apple) see this property in Accessibility Inspector, because it isn't really used for accessibility. That it is associated with accessibility is a misnomer, related to accessibility API's generic value in identifying elements for automated testing using UI Automation, because accessibility information is available cross process. To get this info you could cast UI elements to UIAElements and access the name property, and pass this to NSLog.
EDIT: Yep, look at Saleh's answer. Apple added this at some point! Be wary about relying on this, Accessibility Inspector has been very buggy and unstable for me recently. But that answer would be the accepted answer if you're not answering this 3 years ago!
Xcode is so flaky, sometimes the Accessibility Label or Identifier will not show in the Accessibility Inspector. When this happens I just
Set the Label and/or Identifier
Edit the display text under the Attribute Inspector, the value right under the Text selector. After doing a build I will change the value back.
Or add a IBOutlet then delete it.
If you change just the Label or Identifier Xcode does not detect it.
Make sure you have XCode opened in the background
(even though you are using Accessibility Inspector standalone app)

How to access images in UIATablecell

I'm trying to validate that an image is showing/hidden using UIAutomation on iOS7.
The problem that i'm running into is that .cells()[0].images() always return [object UIAElementNil] even though I can see my image.
I also tried calling images() on the main window, but no luck either.
Any help appreciated.
Thanks.
This is not possible in UI Automation. Table cells don't let you access anything inside, which is caused by the way UI Automation works an how the cell hierarchy looks like.
You could do some changes to your implementation and make your cell images accessible in UI Automation by using UIAccessibilityContainer methods. However, that's a bit complicated.
You can also inspect value(). UI Automation converts all cell content views into a string and sometimes it is possible to check content just by checking this one string.
If everything fails, just go for another testing framework. There are several open source & paid frameworks that are more robust and much more documented than UI Automation.

How can I inspect elements on native iOS application

I am running an iOS native app on iOS Simulator and would like to inspect the elements on the app to get the ID.
Does anyone knows how this can be done?
Note: Please, this question is for iOS native App not Web based app!
Thanks
It sounds like you may be looking for something like Firebug or the Chrome Inspector for your native app? I'm not sure what you mean by "ID". Interface elements in iOS don't really have IDs the same way DOM elements have IDs.
You should check out the Spark Inspector (http://www.sparkinspector.com/), which allows you to see the views of your app and modify them at runtime - it may help you see what you're looking for. Full disclosure: I am the author of the app ;-)
There is a new app, called Reveal, that does an incredible job.
Not only you can check view's properties, you can also view all the app in a "exploded" 3D view, change the sizes and properties.
Specially for iOS 7, where the view controller starts from the beginning of the screen (and not below the navigation bar), it can be really useful.
You can download the trial at http://revealapp.com and decide which license you should get.
There are two Best ways for this -
Use Accessibility Inspector which is Apples's inbuilt tool so you don't need any other support .
As you will be using Xcode mostly for you code part, there is an option to play UI recording which capture all the actions and elements that you interact with on native app.
You need to inspect the App's Bundle.
Check this answer on stackoverflow, to get the appID: https://stackoverflow.com/a/8883166/933887
Appium has an inspector for ios applications.
This is the link for appium: http://appium.io/
and in this video you can see the inspector in action: https://www.youtube.com/watch?v=jQZTRz2W9xg

Why can't I move iOS storyboard elements around?

I am trying to work with storyboards in iOS, and it's driving me nuts because I can't drag storyboard elements around in the UI to clean up the visual structure of the relationships. Should I be able to move them around? If so, what might I be doing wrong?
I should note I am accessing the Mac environment via RealVNC on Windows, which might have something to do with it, and I have little choice in the matter, unfortunately. But I have no problems moving UI elements around within a view. It's just the top-level storyboard views that I can't rearrange.
EDIT: I've dropped the storyboard tag, since this seems to affect all top-level views and windows in my Xcode editor, not just those belonging to storyboards.
I ran into this problem using a Synergy client on a mac. I assume it has something to do with the mouse lag and how the storyboard registers click and drag. My solution for now is to use a mouse connected directly to the mac, but it would be nice if the Apple would fix this issue in future xcode releases.
I was facing this, I have a magic trackpad, and as it turns out if you point your mouse on the battery symbol in the storyboard and try to move them, you can do it very easily! :) (not sure if this is a known thing, just adding it here, if somebody has the same question since google's first hit is this one)
EDIT: Well you can just drag it around using the controller bar below the storyboard so this answer is a little late, but now there are two ways. :)
After trying almost every remote screen implementation I could get my hands on, I've come to the same conclusion.
This also affects control-drag for connections. The workaround on ctrl-drag is to right click on an element and drag from the pop-up menu.
For dragging top-level elements, I have a spare mouse connected to the mac like you. But this fix isn't robust because if the mac (running VNC) doesn't have a monitor attached, the remote cursor does not seem to report itself to VNC clients correctly. Is this consistent with your findings, or does your mac have a monitor connected? Reboot with a monitor and I suspect your mac-mouse will not behave correctly through VNC. The fix here is to connect a monitor to the mac briefly, and then remote cursor reports itself correctly from that point onwards (until the next reboot).
I just bumped into the same issue, I was using Synergy v. 1.3.7 on Mac (Client) and Synergy v. 1.4.4 on Linux (Server).
I upgraded to Synergy 1.4.10 on both Mac and Linux and now everything works for me as expected.
I am using teamviewer from my windows desktop to connect to my macbook and have the same problem.
I couldn't solve it on my desktop anyways, you have to make these changes in mac.
As a partial solution when using Google remote desktop:
Drag a new item from the Object library. This is working normally until you drop the item. Afterwards you can't drag the item again.
Open the outline view. See picture at https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Art/2_outlineview_toggle_2x.png
Than drag the item from there. You can drag it and when dropped, the original item will be moved to the correct place. The problem with that is no help lines are presented in order to align the item and no accurate position can be done.
Use the Size inspector. See pic at https://koenig-media.raywenderlich.com/uploads/2015/11/46_vc_size-e1448290482977-421x320.png
From there you can set the correct size and position of the item.
I'm using a Mac in a VMWare Virtual Machine through VNC from Windows, same problem. However, logging in to VSphere directly, and opening a console on the VM does let you move elements and control-drag.
This requires access to VSphere, though, which your System Administrator may be reluctant to provide.
I was using ShareMouse 3.0.35 for sharing mouse and keyboard between a PC and a MAC and when I turn it off, I can drag things around on the storyboard. Posting this to assist others. Of course, now I have to push my manual KVM which is a drag (pun intended)
I'm experiencing this on WMware player 14 and macOS 10.13 with Xcode 9. The only workaround I've found is under the pane with the vertical ruler icon, in the section called View, and manually adjusting the X and Y coordinates

Resources