In this Article i am explaining you how you can match the Text available in the Web page. This is useful because it may be possible suppose that you test the "Sign In" text should be present in the Login page and in later build that text may be change so you case write the Test Case to compare that text at any time and provide you the Test Case Pass or fail.
Suppose below mark text need to verified
Suppose below mark text need to verified
Here i can use two method to compare the strings.
equals() is used to compare the string but matching is case sensitive while equalsIgnoreCase() is used to compare string in which it ignore the Case Sensitivity.
Comments
Post a Comment