02-17-2011, 03:12 PM
Hi,
Please try the below code to get the value
Thanks,
Rekhapramod
Please try the below code to get the value
Code:
DataTable.Import("C:\Documents and Settings\qtp\Desktop\Login_Details.xls")
WebVal=DataTable.GetSheet(1).GetParameter("Login").Value
Val=Browser("name:=International").Page("title:=International").WebEdit("name:=Uname").GetROProperty("disabled")
If Val=0 Then
Browser("name:=International").Page("title:=International").WebEdit("name:=Uname").Set WebVal
else
Reporter.ReportEvent micFail,"Login user name field ","Login username field is read only"
End If
Thanks,
Rekhapramod