- NLPs
Retrieve Value in Text Element
Capture Dropdown Elements
Unable to Select Radiobutton
Unable to Click Checkbox
Clearing the Session or Cookies
UI Identifier NLP
Drag & Drop NLP
Uploading Files NLP
Use MySQL Addon in NLPs- setup
Server Docker Deployment Errors
Secured Business Application Support
Troubleshooting Restricted Access to Testsigma
Why mobile device not displayed in Testsigma Mobile Test Recorder?
Unable to Create New Test Session
Agent Startup Failure Due to Used Ports
Tests Permanently Queued in Local Executions
Fix Testsigma Agent Registration Failures
Testsigma Agent Cleanup
Need of Apache Tomcat for Testsigma Agent- web apps
URL not accessible
Test Queued for a Long Time
Issues with UI Identifiers
Missing Elements in Recorder
Collecting HAR File
Errors with Browser Session
Page Loading Issues- mobile apps
Failed to Start Mobile Test Recorder
Troubleshooting “Failed to perform action Mobile Test Recorder” error
Why Test Execution State is Queued for a Long Time?
Why Mobile App Keeps Stopping After Successful Launch?
More pre-requisite settings
Why am I not able to start WDA Process on iPhone?
What are the Most Common causes for Click/Tap NLP Failure?
How to Find App Package & Activity in Android?
Cross-environment Compatible ID Locators (Android)
Why Accessibility IDs Over other Locators?
What are Common Android Issues & Proposed Solutions?
How to Find the App Bundle ID for iOS?
Developer Mode (iOS 16 & Above)
How to Handle iOS App Compatibility Issues?
How to Disable Play Protect for SMS Forwarder Installation?
How to Capture Network Logs in an Android Application?
Disable, Hide, Check & Select Elements
Understanding how to disable, hide, check, and select elements is important to create reliable tests. It helps interact with dynamic content accurately. This article discusses different ways to disable, hide, check and select elements.
Different Ways to Disable Elements
1. Enabled State
The disabled attribute is a boolean attribute that, when applied, indicates the element should be disabled. A disabled element will be unusable and unclickable.
- Applicable elements: <button>, <fieldset>, <input>, <optgroup>, <option>, <select>, <textarea>.
2. Read-Only State
The readonly attribute is also a boolean attribute. It specifies that an input field or text area is read-only when applied. While a user can focus, highlight, and copy text from a readonly field, they cannot modify its content.
- Applicable Elements: <input>, <textarea>.
Examples:
<textarea id="description" class="description box" readonly>
<button id="login" class="loginbtn btn primary" disabled>
Different Ways to Hide Elements
1. CSS Display Property: Setting an element’s CSS display property to none makes it invisible.
2. HTML Hidden Attribute: The hidden attribute is a boolean attribute that hides the element when present.
3. Setting Width and Height to Zero: If an element’s width & height are set to zero, it won’t be visible.
Examples:
<button id="login" class="loginbtn btn primary" hidden>
<button id="login" class="loginbtn btn primary" style="display:none;">
<button id="login" class="loginbtn btn primary" style="width:0px,height:0px;">
Different Ways to Check Elements
The checked attribute is used for <input> elements of type checkbox or radio. When present, it indicates that the element should be checked.
- Applicable Elements: <input>
Examples:
<input type="checkbox" id="username" checked>
Different Ways to Select Elements
The selected attribute is a boolean attribute. When present, it specifies that an option should be pre-selected when the page loads. The pre-selected option will be displayed first in the drop-down list.
Applicable Elements: <option>
Examples:
<select>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="vw">VW</option>
<option value="audi" selected>Audi</option>
</select>