Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem while adding description of an object using a varibale
#1
Not Solved
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.

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...
Reply


Messages In This Thread
Problem while adding description of an object using a varibale - by shibinp - 08-25-2011, 12:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question adding two conditions into a while statement lotos 4 5,089 11-10-2017, 04:49 AM
Last Post: lotos
  Uft: Adding a property to all ojects into Repository ProTester 0 1,361 06-09-2017, 12:48 AM
Last Post: ProTester
  How to find out the object property in the Description language . njnirmal 9 6,677 05-19-2015, 12:30 AM
Last Post: qtptester66523
  HAVING PROBLEM IN CREATING OBJECT OF TEST BATCH RUNNER mayankchauhan 0 3,438 04-04-2014, 05:29 PM
Last Post: mayankchauhan
  adding an object to OR seven 1 2,658 02-17-2014, 02:23 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)