- 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?
How to Handle Text-Based CAPTCHA in Testsigma?
Handling CAPTCHA in automation is often challenging, but Testsigma provides a solution for text-based CAPTCHAs using the OCR_ExtractText Addon. This article discusses how to manage text-based CAPTCHA effectively using Testsigma.
Install the Addon
- From the left navigation bar, click the Addons icon and then select Add-ons.
- On the Addons page, under New & Updated Addons, click the search icon and search for OCR_ExtractText.
- When it appears in the results, click Install.
Create an Element for the CAPTCHA Image
- From the left navigation bar, go to Create Tests and click Elements.
- Click Create Element.
-
In the Create Element overlay:
- Enter the element name
- Provide the screen name
- Select the appropriate element type
- Enter the locator value (Xpath or CSS selector for the CAPTCHA image)
- Click Create Element.
NOTE:
Repeat the same process to create an element for the CAPTCHA input field.
Create a Test Case
- From the left navigation bar, go to Create Tests and click Test Cases.
- In the Test Case Explorer section, expand the required Feature and click the + icon next to the required Scenario. A dialog box appears.
- In the dialog box, enter the name for your test case and click Create.
Specify the Variable Name
-
In the Test Case Details page, add the following NLP step:
Extract text from the locator element including special characters and store it into a variable.
- Click on element and select the previously created element for the CAPTCHA image.
- Click on variable and enter a name for the runtime variable (e.g., capturetext).
Use the Stored Variable in the Input Field
-
In the same test case, add the following NLP step:
Enter the testdata in the element field.
- Click on testdata and select the runtime variable you created earlier (e.g., $ capturetext).
- Click on element and select the element created for the CAPTCHA input field.