Italian Trulli

Test Cases For Disable or Inactive Field

Test Tribe
.

Sample Test Cases For Disable Field /Inactive Field

Hello Folks, 

In this tutorial, we will learn how to write Disable Field Test Cases? We will also learn about positive test scenarios and Negative test scenarios.


What are the test cases for the disabled 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 the disable field.
  • Verify the disabled field when the user edits the details.
  • Check that the disable field depends on another element.
  • Verify that the disabled 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 the user is able to select the value from the disabled field.
  • Check the default colour for the disabled field.
  • Check the default colour 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 is enabled on the selection of any other element.


Hope !!! The above Test cases for disabled fields are helpful for you...

Team,
QA acharya

Share Your Knowledge With Us -
Mail your content - qaacharya.in@gmail.com

Test Cases For Disable Field

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" />

Post a Comment

0 Comments