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












0















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.










share|improve this question



























    0















    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.










    share|improve this question

























      0












      0








      0








      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.










      share|improve this question














      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.







      appium appium-android






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 11 '18 at 14:02









      Siddharth TiwariSiddharth Tiwari

      116




      116
























          3 Answers
          3






          active

          oldest

          votes


















          2














          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






          share|improve this answer
























          • Thanks Abhishek, i will look into these and let you know

            – Siddharth Tiwari
            Mar 12 '18 at 9:48



















          1














          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.






          share|improve this answer

































            0














            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






            share|improve this answer























              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49220833%2funable-to-inspect-element-from-appium-inspector-for-android-device-on-mac-pc%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              2














              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






              share|improve this answer
























              • Thanks Abhishek, i will look into these and let you know

                – Siddharth Tiwari
                Mar 12 '18 at 9:48
















              2














              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






              share|improve this answer
























              • Thanks Abhishek, i will look into these and let you know

                – Siddharth Tiwari
                Mar 12 '18 at 9:48














              2












              2








              2







              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






              share|improve this answer













              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







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Mar 12 '18 at 7:13









              Abhishek GoelAbhishek Goel

              413




              413













              • Thanks Abhishek, i will look into these and let you know

                – Siddharth Tiwari
                Mar 12 '18 at 9:48



















              • Thanks Abhishek, i will look into these and let you know

                – Siddharth Tiwari
                Mar 12 '18 at 9:48

















              Thanks Abhishek, i will look into these and let you know

              – Siddharth Tiwari
              Mar 12 '18 at 9:48





              Thanks Abhishek, i will look into these and let you know

              – Siddharth Tiwari
              Mar 12 '18 at 9:48













              1














              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.






              share|improve this answer






























                1














                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.






                share|improve this answer




























                  1












                  1








                  1







                  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.






                  share|improve this answer















                  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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 19 '18 at 10:22

























                  answered Nov 15 '18 at 13:56









                  shreya zarkarshreya zarkar

                  289




                  289























                      0














                      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






                      share|improve this answer




























                        0














                        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






                        share|improve this answer


























                          0












                          0








                          0







                          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






                          share|improve this answer













                          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







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Mar 12 '18 at 9:47









                          Siddharth TiwariSiddharth Tiwari

                          116




                          116






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f49220833%2funable-to-inspect-element-from-appium-inspector-for-android-device-on-mac-pc%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Florida Star v. B. J. F.

                              Error while running script in elastic search , gateway timeout

                              Adding quotations to stringified JSON object values