02-17-2011, 12:59 AM
Hi,
I have to enter date in a field based on whether that field is enabled or disabed. My coede reads as follows
In this situation, if the disabled = true, Else statement is not picking up and the test fails.
Any hlep is appreciated please!!
I have to enter date in a field based on whether that field is enabled or disabed. My coede reads as follows
Code:
Dim FromDateDisabled
FromDateDisabled = Browser("x").Page("y").WebEdit("FromDate").GetROProperty("Disabled")
If FromDateDisabled = False Then
Browser("x").Page("y").WebEdit("FromDate").Set DataTable("FromDate", dtGlobalSheet)
Else
Reporter.ReportEvent micPass,"From Date","From Date Disabled"
Any hlep is appreciated please!!