Skip to content

An error occurred while receiving xml: ERROR: null root node returned #84

@mrjay59

Description

@mrjay59

Describe the bug

I always find this bug when searching for elements

Dim Elspgsuara = Adb.FindElement("//node[@text='Mulai panggilan suara?']") 

for the device
image

how to solve it if node is null

Steps to reproduce the bug

Dim elEndC = Adb.FindElement($"//node[@resource-id='com.{whatsapp}:id/footer_end_call_btn']")
If (elEndC Is Nothing) Then
    Dim Elspgsuara = Adb.FindElement("//node[@text='Mulai panggilan suara?']") 'bar ic VOICE

    If Not (Elspgsuara Is Nothing) Then
        Thread.Sleep(500)
        KlikTouch("PAG", whatsapp)
    End If

    Dim Elstpaggil = Adb.FindElement("//node[@text='Pilih tipe panggilan']") 'bar ic VOICE

    If Not (Elstpaggil Is Nothing) Then
        Thread.Sleep(500)
        KlikTouch("PS1", whatsapp)
    End If
End If

Expected behavior

No response

Screenshots

No response

NuGet package version

Latest Source

.NET Platform

.NET Framework 4.5.x

Platform type

Windows

System version

windows 10

IDE

Visual Studio 2015

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions