- web apps
Why Install Chrome Extension?
Steps to Test Locally Hosted Apps
How to Turnoff Onboading Tutorial?
Non-Text Keys in Test Cases
Basic Authentication for Web
Why Bypass CAPTCHA?
Test Case Failures Due to Link Text Capture Issues
Why Is a Single Video for All Test Cases in a Test Plan Unavailable in Some Cases?
How to Handle Browser-Related Permission Issues?
Why Can’t Selenium ChromeDriver Interact With 3DS Authentication Pages?
How Do I Fix the Try Again Error When Opening the Testsigma Desktop App?
Why Am I Getting an Error While Registering the Agent?
Why Does the Try Again Error Appear While Installing the Testsigma Agent in a Proxy Environment?- mobile apps
Apple Pay Automation with Testsigma
How do I Enhance the Execution Speed for Mobile Native Apps?
Why am I Facing Permission Error During Local Test Execution?
How to Resolve App Launch Issues?
Why does the iOS App Close Right After Opening in Testsigma?
How to Execute Android/iOS Tests in Emulators/Simulators?- general
Why am I Unable to Download the XLS File from the Edge Browser?
How to Handle Browser-Related Pop-Up Issues?
How to Handle Text-Based CAPTCHA in Testsigma?
Why does Test Execution Fail with the Error No Route to Host?
Why do Errors Occur When I Try to Download Files from The Exports Page?
How to Test Flutter Apps Using Accessibility Mode?
How to Add Multiple Runtime Variables in Data Generator Functions?
How to Insert Test Data in RAW Body for POST API?
What is Chrome for Testing and How Does it Work?
How Can I Set Up Authenticator-Based Authentication in Testsigma?
How to Update an Excel File in Testsigma Uploads?
What Causes Longer Automation Test Execution Times in a Test Plan?
How Do I Retrieve the OTP When it’s Embedded within HTML Tags?
How to Configure the OracleDB Add-on in Testsigma?
Test Case Failures Due to Link Text Capture Issues
In automated testing, test failures often occur when the recorder captures link text differently between the UI and HTML, such as in uppercase in the UI and lowercase in HTML. This guide helps you identify the issue and adjust settings to ensure you capture the correct elements in your tests, avoiding these failures.
Prerequisites
Before you begin, ensure that you have referred to:
Identifying Link Text Capture Issues
- Check if the recorder captures link text from the HTML instead of the visible text in the UI.
- Compare the captured text with what you see in the UI to spot differences.

If the UI displays LOGIN but the HTML shows login, the recorder may capture the lowercase version, which could lead to a test case failure.
Changing Element Details
- Change the locator setting in your test automation tool from Link text to XPath.
- This adjustment allows the recorder to identify the element based on its structure rather than just the text.
- If needed, manually update the captured link text to match the UI-visible text, ensuring the test case reflects what users see on the screen.

Using XPath or other reliable locators reduces the risk of capturing incorrect text, especially when differences exist between UI and HTML text.
Dealing with UI and HTML Text Mismatches
- Compare the UI text with the HTML source to identify any inconsistencies that might cause the recorder to capture the wrong text.
- Modify your test case to use the visible UI text for element identification.
- Ensure the locator strategy aligns with the format users see in the UI.
- Consider using unique attributes like data-test-id or other identifiers instead of relying solely on link text. This approach minimises the risk of mismatches between the UI and HTML representations.
If the UI shows SUBMIT, but the HTML has it as submit, adjust your test case using the visible UI text to account for this difference.
- You should implement more automated solutions (like XPath or unique attributes) to enhance test stability and reduce the need for ongoing manual intervention.
- In contrast, manual updates to captured text can resolve specific issues.