testdevlab / TestUI

MIT License
33 stars 9 forks source link

fix element locator when it contains colons #83

Closed alvarolaserna closed 1 year ago

alvarolaserna commented 1 year ago

When the element locator contains colons it crops the string:

E(By.byAccesibilityId("Incorrect password! Expected to match: ^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[@$!%*#?&])[A-Za-z0-9@$!%*#?&]{8,}$")

will return:

'By.accessibilityId: Incorrect password! Expected to match'