The Invisible Bug That Broke My Automation: How OCR Modified The Sport | by Abdelkader HASSINE | Dec, 2024

The evolution of AI in take a look at automation: from locators to generative AI (Half 3)

A robotic hand powering AI brain like network symbolizing the evolution of artificial intelligence in test automation
The Evolution of AI in Take a look at Automation: From Locators to Generative AI ( Half 3 ) — © Tung Nguyen de Pixabay

It’s 10:00 AM on a quiet weekday and I’m watching one more failed take a look at report.

This wasn’t simply any take a look at case , it was one I had reviewed and debugged final week after some UI adjustments. And now it had mysteriously failed. Once more…

The error? Visibily there is no such thing as a error.

What ought to have been: this textual content ought to be displayed on the welcome display screen:
“Bienvenue à bord de l’software my-app-name!”

I made a glance on the app screenshot and the textual content was accurately displayed.. there was no problem:

Screenshot of the application under test showing the that the current screen have no issue and text is well displayed
Screenshot from the creator cell — for confidentiality points the app title has been blurred

I made a decision to make a glance on the Appium XML :

<XCUIElementTypeStaticText kind="XCUIElementTypeStaticText" 
worth="Bienvenue à bord de l'software&#10;my-app-name !"
enabled="true" seen="false" accessible="true" x="879" y="522"
width="312" peak="50" index="7"/>

That little “ &#10; “ — a sneaky newline character — had crept into the XML output…