Appium Beginner Tutorial 9 | How to use UIAutomatorViewer for Object Locators



FREE courses –
Step 1 : Connect mobile device to computer system
through cable OR through wifi

Step 2 : Run command adb devices

Step 3 : Start UIAutomatorViewer
Windows – goto android-sdk/tools/bin
Mac – from terminal run command uiautomatorviewer

Step 4 : Open the application on mobile device and capture on uiautomatorviewer to find element locators

#AppiumBeginnerTutorial

FREE Courses –
Udemy –
Training by Raghav at your venue – raghav.qna@gmail.com
Training schedule –
———— UI TESTING ————
Selenium Beginners –
Selenium Java Framework from Scratch –
Selenium Python –
Selenium Tips –
Selenium Builder –
Katalon Studio –
Robot Framework with RIDE-
Robot Framework with Eclipse –

———— API TESTING ————
Web Services (API) –
SoapUI –
Postman –
General –
Katalon Studio API Testing –

———— MOBILE TESTING ————
Appium –
Mobile Playlist –

———— CI | CD | DEVOPS ————
Jenkins Beginner –
Jenkins Tips & Trick –
Docker –

———— VERSION CONTROL SYSTEM ————
Git & GitHub –

———— PERFORMANCE TESTING ————
JMeter Beginner –
JMeter Intermediate –
JMeter Advanced –
JMeter Tips & Tricks –
Performance Testing –

———— PROGRAMMING ————
Java Beginners –
Java Tips & Tricks –
GROOVY –

———— IDE ————
Visual Studio Code –

———— MAVEN ————
Maven –

———— OTHERS ————
Redis-
Misc –
Tools & Tips –
QnA Friday-
Sunday Special –

Ask Raghav –
Interviews –
All Playlists –

Keep Learning,
Raghav

Website –
LifeCharger –
Udemy Courses –
Facebook –
Twitter –
Youtube –
Instagram –

You can support my mission for education by sharing this knowledge and helping as many people as you can.

Nguồn: https://hdwallpaperslovely.com

Xem thêm bài viết khác: https://hdwallpaperslovely.com/cong-nghe/

Related Posts

ADB MI CLOUD FRP BYPASS TOOL FREE DOWNLOAD working files

February 1, 2020

February 1, 2020 1

Tool download ADB MI CLOUD FRP BYPASS TOOL FREE DOWNLOAD working files MI ACCOUNT UNLOCK ADB TOOL, Mi Cloud Adb...

Executar ADB Fastboot abrir o prompt de comando "CMD" no Windows 10

March 15, 2020

March 15, 2020 46

Galera esse método não precisa desativar o WindowsPowerll nem nada blz ? se estiver com dúvida basta acessar o link...

[Solved] 'pip' is not recognized as an internal or external command, operable program or batch /file

February 3, 2020

February 3, 2020 1

In this video i give answers on following topics:- 1. What is Python Package? 2. How to use Package in...

Phần mềm AFTER EFFECTS CC 2018 Full – Link tải tốc độ cao

May 15, 2020

May 15, 2020 3

video Hướng dẫn sử dụng After Effects CC 2018, và cập nhật Trapcode Plug-in công cụ tạo hiệu ứng tuyệt...

Cara Download Dan Instal ADOBE AUDITION CC 2015 | BAHASA INDONESIA

April 12, 2020

April 12, 2020 36

Halo apa kabar semuanya… Di video kali saya akan mengarjakan bagaimana mendownload dan menginstal Adobe audition CC 2015. jika teman-teman...

Samsung j701f frp lock reset solution With Z3X-Sboot ADB Enable File-Bypass Samsung FRP

February 17, 2020

February 17, 2020 2

File Link Follow On Facebook Nguồn:https://hdwallpaperslovely.com/

How to download PS4 game Add-Ons

May 11, 2020

May 11, 2020 28

PS4 game Add-Ons are downloadable content that add features to your game title. If you are having trouble finding or...

ADATA Premier SP550 SSD Unboxing and Install

February 4, 2020

February 4, 2020 4

Link to buy the SSD on Amazon : Follow me on social networks: Google+ – Twitter – ADATA Premier SP550...

Bài 2: Cách cắt,ghép,chỉnh sửa video và sử dụng công cụ trong Adobe Premiere

March 24, 2020

March 24, 2020 22

Học Adobe Premiere Pro cc 2018 NEW cho người mới bắt đầu từ cơ bản đến nâng cao Bài 2:...

PATRIOT BURST & SCORCH SSD – test and review

February 5, 2020

February 5, 2020 19

PATRIOT BURST & SCORCH SSD – test and review PATRIOT social media: ►Instagram: ►Facebook: ►Twitter: Where to buy: US: ►PATRIOT...

Nhanh tay mua hàng 9.000đ trên LAZADA trong hôm nay

February 28, 2020

February 28, 2020 42

– Link mua hàng 9k, nhóm và mã giảm giá: (vào link xong xuống dưới có link 9k nhé) ——————...

TWRP ERROR 1 (Magisk Zip) – 100% WORKING SOLUTION [2019]

March 15, 2020

March 15, 2020 25

Hey guys! Watch the video till the end if you’re facing issues while flashing Magisk, we assure you this fix...

Tutorial Flashing Xiaomi Redmi 3s/3x Sekaligus Fix 4G

March 6, 2020

March 6, 2020 27

Tutorial Flashing Xiaomi Redmi 3s/3x Sekaligus Fix 4G ini adalah cara untuk flashing ROM xiaomi redmi 3x atau 3x dengan...

How to install adb driver Manually on Windows 10 x64 bit

February 22, 2020

February 22, 2020 1

Hello friends… aaj hum dekhenge k kaise windows 10 64bit mein adb driver manually install karte ha. koi v mobile...

Running Debug command on Windows x64 (Executer Debug sur Windows 64 bit)

February 12, 2020

February 12, 2020 4

Salam, This video is especially made for Oran University student since they have a problem on running debug command on...

Comments
  • Raghav, I have downloaded the command line tools zip file. After unzipping I didn't find the uiautomatorviewer.bat file, Kindly help.

  • Hi Raghav, how to handle the element or know the object/elements involved if the app was using a WebView or using a Hybrid? .

  • Hi Raghav, where can I find this UI Automator Viewer? I downloaded the command line tool for Windows and installed it properly. But I cannot find the UI Automator Viewer tool in the folder

  • Hi Raghav,

    I am using macOS for iOS mobile development.
    I can't open the UIAutomatorViewer. I am using the simulator of Xcode and I can't use the 'uiautomatorviewer' on my terminal.
    It only display: -bash: uiautomatorviewer: command not found

    Can you help me out? Thanks.

  • Hello
    When I run "uiautomatorviewer.bat" through terminal then its shows error like
    "-Djava.ext.dirs=..libx86;..lib is not supported. Use -classpath instead.
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit. "
    OS :- Windows 10
    Can you please give me any suggestion?

  • Hi Raghav,

    I am not able to inspect an element for the respective page in android application getting an error message as:
    Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!
    Please help me out

  • I just get "Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema" when I try to run SDKmanager.bat and error "-Djava.ext.dirs=..libx86_64;..lib is not supported. Use -classpath instead.
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit." when I try to run UIAutomatorViewer.bat in cmd. JAVA_HOME is pointing at "C:Program FilesJavajdk-13.0.1"

  • Hi Raghav sir,
    i am not able to click on login button application show error message
    Element info: {Using=id, value=com.pixilapps.selfcare:id/btn_skip}
    null please help me

  • Hi Raghav,
    I am getting an error in UI automator viewer saying "unable to connect to adb" in cmd prompt I can see that my device is attached..
    Please help

  • Sir. I'm trying to automate an app. One of the option in app when I inspected in the UI automator it is showing as clickable =false. Cos of which my script is not clicking the option. Can you suggest me how to resolve it or how to click on that option.

  • sir.. if im trying to uiautomator and try to click on device screenshot option im getting this below error. please tell me what is the solution for this.
    "Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!]"

  • Please tell how do I start UIautomatorviewer in linux….I can't run that file ( I have also run chmod command )

  • Hi Raghav, I am getting below error message pop-up while taking the screenshot using uiautomatorviewer.
    "Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Remote object doesn't exist!
    "

    I have check my device is connect: using adb devices.

  • hello Raghav
    i get this error
    Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)

    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)

    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)

    at org.eclipse.swt.widgets.Widget.<clinit>(Unknown Source)

    at org.eclipse.jface.window.Window.createShell(Window.java:487)

    at org.eclipse.jface.window.Window.create(Window.java:430)

    at org.eclipse.jface.window.Window.open(Window.java:790)

    at com.android.uiautomator.UiAutomatorViewer.main(UiAutomatorViewer.java:78)

    solution please

  • Error obtaining UI hierarchy
    Reason: unexpected error while obtaining UI hierarchy.
    Logs in cmd:- E/Screenshot: unsupported protocol: 2

    Can anyone help in this? I did it for 7-8 times and every time i am facing the same issue. Appium server is running and i can see the devices in list as well(in cmd via adb devices).
    My android version is 8.1.0

  • Hi Raghav,
    That was an interesting session. Can we you UI Automator to locate elements from Webpage by connecting our real device?

  • Error while obtaining UI hierarchy. This is what i have been esperiencing for the past 2 weeks. I have used all the solutions online, add the Uiautomator path to the file or copying the adb.exe file into uiautomatorviewer.bat. I don't know what to do anymore.

  • Watched a lot of your videos and now came back to comment here.
    Your videos are the best. I am glad I found your channel.

  • Hi Raghav,
    I am getting below error while taking the "Device screenshot"

    Error obtaining UI hierarchy

    Error taking device screenshot: EOF
    Could you please help me on this?

Leave a Reply

Your email address will not be published. Required fields are marked *