04-29-2011, 10:33 AM
Hi ... even if the textbox readonly, we can access the object properties and modify.
Code:
Browser("Log In").Page("Log In").WebEdit("name:=lname").Object.readonly = false ' make it editable
Browser("Log In").Page("Log In").WebEdit("name:=lname").set "LastName" ' set the value
Browser("Log In").Page("Log In").WebEdit("name:=lname").Object.readonly = true ' make it readonly again