Posts: 2
Threads: 1
Joined: Jun 2011
Reputation:
0
06-03-2011, 01:20 PM
Hi,
The caption/text of the webedit is changing dynamically and we need to identify that webedit through QTP. How can we approach it?
Appreciate your reply.
Thanks,
Gopi
Posts: 14
Threads: 1
Joined: May 2011
Reputation:
0
06-03-2011, 02:40 PM
You can identify the webedit object with its ordinal identifiers either with its index or location properties.
Thanks,
Suresh.
Posts: 2
Threads: 1
Joined: Jun 2011
Reputation:
0
06-03-2011, 02:44 PM
Use regular expression if Caption/text property not changing completely
EX.
Text value1 = User1234
Text value1 = User4321
you can user reg exp as User.*
Else you can go for ordinal property= index
Posts: 2
Threads: 1
Joined: Jun 2011
Reputation:
0
06-07-2011, 01:28 PM
Thanks for the answers.
Is there any other technique apart from ordinal identifiers or regular expression?
Regards,
Gopi
Posts: 2
Threads: 0
Joined: Jun 2011
Reputation:
0
06-07-2011, 02:04 PM
You have to identify the properties which are not chaning every time. Now, add these properties to obeject repository. Side by side you have to remove the property which is changing every time (like in your case caption/text).
Also you can use descriptive programming to identify the object.
Posts: 5
Threads: 0
Joined: Feb 2012
Reputation:
0
02-14-2012, 05:25 PM
you can solve it bygetroproperty and settoproperty
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
05-29-2012, 09:45 AM
For which object we have to use the getroproperty? Please test the code before you post in the forum and make sure that it's a workable solution.
Thanks,
SUpputuri