MADE-Apps / legerity

A framework for speeding up the development of automated UI tests for Windows, Android, iOS, and Web with Appium/Selenium on .NET
https://made-apps.github.io/legerity/
MIT License
79 stars 13 forks source link

[Bug] Windows `VerifyNameOrAutomationIdContains` method returns false when expected true #201

Closed jamesmcroft closed 1 year ago

jamesmcroft commented 1 year ago

Describe the bug

When calling the VerifyNameOrAutomationIdContains method on either an AppiumWebElement or a WindowsElement, the passed partial compare always returns false even when expecting a true value.

Glancing at the code, it looks like the check is wrong, validating that the partial compare value contains the name or automation ID.

What is the expected behavior?

VerifyNameOrAutomationIdContains returns true if the partial value matches

Package

Windows

Other information

No response