10-08-2010, 03:37 PM
(This post was last modified: 10-08-2010, 03:42 PM by KavitaPriyaCR.)
I am assuming the scenario as: There is a webpage with fields User Name, Place and DOB. User Name is required field and other 2 are optional. Here when user selects Save button without entering data for Usert ID, system should display error as "Please enter User Name" (Developer calls error function/script at this point).
1. Check the data in that field is empty
2. Fetch the Error message if displayed on the WebPage. (User descriptive programming here)
By using 1 and 2 we can validate the scenario.
1. Check the data in that field is empty
Code:
Data1=Browser("").Page("").WEbEdit("name:=Usert ID").GetROProperty("value")
By using 1 and 2 we can validate the scenario.