AdvancedSharpAdbClient
AdvancedSharpAdbClient copied to clipboard
DumpScreen relies on Xml string not containing "ERROR" inside
Describe the bug
If you call DumpScreen(DeviceData device)
on AdvancedAdbClient
it'll return null if the dumped Xml contains "ERROR" anywhere inside, even if it's just text in an element
Steps to reproduce the bug
- On device open anything that contains text "ERROR"
- Call
DumpScreen
- It returns null
Expected behavior
Get an XmlDocument
Screenshots
No response
NuGet package version
2.5.2
.NET Platform
.NET 6
Platform type
Windows
System version
Windows 10
IDE
Other
Additional context
Does this check really have to be like this? Maybe it can be changed to Equals instead of Contains or even simply be removed