Unable to inspect the ios app using appium inspector - ios

I am using appium version 1.3.7 version.
After starting appium sever, the app get installed in ios simulator.
When I tried to inspect using appium inspector, the refresh button in the appium inspector keeps on loading, it doesn't load the home page of an app at all.

I think you need to update your appium, since new appium version support XCUITest you might be ended to some changes in locators and other setup. This is my suggestion because you need to automate your cases on iOS 10, so in that cases you forced to upgrade the appium.
Coming to your question, if you are not able to access the appium inspector there is workaround.
How to inspect ios elements ,
Option one : https://www.youtube.com/watch?v=254nbRjjQjc
Option two : https://www.youtube.com/watch?v=4BgkVp0v3BM
For more videos :
https://www.youtube.com/channel/UCaJA59vxBDS7smS81Gqf7KA

Are you using Windows or Mac machine? I would suggest to use ~/android-sdk/tools/uiautomatorviewer. This will open one window, you can take screenshot of current screen from connected device and from left pane elements can be inspected.

Related

Cant locate element(id) using pycharm/appium server(1.15.1) for mobile app. But same element can be located by Appium Studio

self.driver.find_element_by_xpath("xpath=//*[#id='text1']").click()
Above code works perfect in appium studio where it clicks the element but when i initiate the app thru pycharm, it land on to the app and displays the element still error is there that no element exists.
Appium-python client version 0.50
Appium server version 1.15.1
selenium version 3.141.0
change this line
self.driver.find_element_by_xpath("xpath=//*[#id='text1']").click()
for
self.driver.find_element_by_xpath("//*[#id='text1']").click()

Unable to inspect element from appium inspector for android device on Mac PC

Unable to inspect element from appium inspector for android device on Mac PC.
Mac: 10.13
Appium: 1.7.2
Appium Inspector : 1.5.3
Android Device Simulator: Pixel-2
Android Version: 8.0
I am able to inspect element for iOS (iPhone device) for the same application, but unable to inspect the element in android.
When I click on inspect icon of appium dmg of 1.5.3 (in Terminal i run appium 1.7.2), it launches the device but i dont see anything in appium inspector tool.
Please help, I have tried UIAutomateviewer as well, but since my application dont have most the ID's for most of the elements so I need XPATH in my script.
I may be wrong but trying to help:
Try uiautomatorviewer if your application does not have id then certainly can use resource-id as id
Or can use XCUI test
Very well explained here:
http://developers.perfectomobile.com/display/TT/Finding+Elements+on+XCUITest+devices?src=contextnavpagetreemode
Also, this webpage explain how to fetch xpath
https://bitbar.com/appium-tip-13-use-inspector-or-uiautomatorviewer-for-ui-element-inspection/
XCUI explained in detail
https://github.com/appium/appium-desktop
https://www.youtube.com/watch?v=4BgkVp0v3BM
Also can try Macaca inspector if you have not tried before, this worked for me with appium 1.6
https://gopekannan.wordpress.com/2017/02/03/macaca-inspector-for-apple-mac/
Thanks
Abhishek
first of all you need to set the desired capabilities in the new session window for inspecting elements of the android app.
the three imp DC's are -
1. app -> add the path of .apk file
2. deviceName-> to get the device name, type adb devices in terminal and get the device name from there
3. PlatformName -> android
start the session.
soon you will be able to inspect the elements.
If your facing any issues, let me know i'll be happy to help.
I have resolved this issue by downgrading my Android version to 6.0.
However please let me know if any one of you have solution for the latest android versions

Unable to identify elements using Appium inspector for ios

I am using Appium 1.6.5
Device : iPod
iOS version : 10.3.3
I am unable to identify elements using Appium inspector.
I click on any objects, the whole frame is getting selected.I am not able to identify each element uniquely.Please refer the below image for actual representation of the issue.
Please help me out with the solution
First of all, why don't you try the latest Appium Desktop that uses Appium server v 1.7.1
However, if there are some reason behind not using the latest appium server, you can go to web alternative: Appium-iOS-Inspector

How do get dimensions of elements in Xcode simulator

I'm running my react native application in the xcode simulator. Now I would like to check for the dimensions of the elements and if possible I would like to change things temporarily to see, what I have to change in my code. Something like the developer tools in the chrome browser. Is this possible?
You can use react-devtools for this (see guide in official documentation).
When the developer tools are installed and running, you can use the regular Element inspector debug tool from the React Native developer menu (Cmd+D, Show Inspector).
Now, instead of limited the in-simulator inspector, you have access to a Chrome Devtools like experience, where you can inspect and edit element styles and props.
Use Xcode to build the app and run in simulator, and then you can use the debugging view hierarchy tool

Could Not Launch Appium Inspector

Guys how to overcome from this problem while launching the iOS app from appium server, unable to open appium inspecter
please help me out to come out of the group guys.
this below warning message from in the pop up
Be sure the Appium server is running with an application opened by using the "App Path" parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.
please help me out to come out of the group guys.
Build the app through XCode, and then specify path to the app, you should be able to find it through XCode.
Update
I had the same problem a while, here is how I solved it:
Build the application on your Mac using Xcode Simulator
Find location of the app on your machine, here is how to do it
Enter the path in Appium GUI
Now you should be able launch inspector
Some additional information:
My old blog on how to setup Appium GUI
Blog on how to start using Appium tutsplus
Appnium can only recognized .app file. It cannot open the .ipa file.

Resources