
.
Sample Test Cases For Disable Field /Inactive Field
Disable Field: Un-Clickable
A field that is displayed in the inactive mode after page load or selection of elements.
What are the test cases for disable field?
Here!!! Some of the important Test cases for disabled fields are given...
- First, Verify that when the user clicks on the field (It should display in inactive mode).
- Check the Default value for disable field.
- Verify the disabled field when the user edits the details.
- Check that when disable field depends on another element.
- Verify that disable field is prefilled automatically or not on the selection of the dependent element.
- Verify whether the prefilled value is per requirement or not.
- Check if the disabled field is a mandatory field and if the user leaves the field blank.
- Check that when the user tries to activate the field by inspecting and entering the negative value and trying to save.
- Check that user is able to select the value from the disabled field.
- Check the default colour for the disabled field.
- Check the default color of the text for the disabled field.
- Verify the cursor icon when the user hovers the mouse on the disabled field.
- Check if the disabled field getting enabled on the selection of any other element.
Hope !!! The above Test cases for disable fields are helpful for you...
Team,
QA acharya
Tags: Disable Field Test Cases, How to test disable fields, disable field test case, Inactive field test cases.
How to verify whether the element is enabled or disabled in Selenium Webdriver?
Syntax :
boolean FirstName= driver.findElement(By.id("fname")).isEnabled(); System.out.print(FirstName);
if
(FirstName.isEnabled())
{
System.out.print("Text box Full name is enabled. "); }
else
{
System.out.print("Text box Full name is disabled.");
}
How do I disable/enable a form element?-JQuery
Disable #x
$( "#x" ).prop( "disabled", true );
// Enable #x
$( "#x" ).prop( "disabled", false );
How to disable an input type=text in Java Script?
<input type="text" disabled="disabled" />
//or...
<input type="text" readonly="readonly" />
0 Comments