Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Caption of the webedit changing
#1
Not Solved
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

Reply
#2
Not Solved
You can identify the webedit object with its ordinal identifiers either with its index or location properties.

Thanks,
Suresh.
Reply
#3
Not Solved
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






Reply
#4
Not Solved
Thanks for the answers.

Is there any other technique apart from ordinal identifiers or regular expression?

Regards,
Gopi
Reply
#5
Not Solved
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.
Reply
#6
Not Solved
you can solve it bygetroproperty and settoproperty
Reply
#7
Not Solved
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
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)