08-25-2011, 12:34 AM
Dear friends,
I stored set of properties of a particular object in a string variable and use that variable with WebEdit object, But it was not working.
For me this code return an error, that object not found in the application, But it is working if i directly use StrVar as below,
Can anyone help me to run the code successfully...
Waiting for reply...
I stored set of properties of a particular object in a string variable and use that variable with WebEdit object, But it was not working.
Code:
StrVar="name:=USER_NAME"+""""+","+""""+"visible:=True"
'MsgBox StrVar 'returns the exact value which needs to pass inside WebEdit
Browser("B1").Page("P1").WebEdit(StrVar).Set("Mercury")
For me this code return an error, that object not found in the application, But it is working if i directly use StrVar as below,
Code:
Browser("B1").Page("P1").WebEdit("name:=USER_NAME","visible:=True").Set("Mercury")
Can anyone help me to run the code successfully...
Waiting for reply...