Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive Program - Not able to use object property which is having Bracket
#1
Solved: 11 Years, 3 Months, 3 Weeks ago Shy 
In my application many links has brackets along with the name

eg:
Code:
Browser("name:=xxx").Page("name:=yyy").link("text:=(zzz)").click

QTP throws an error for this code, because the link has brackets.

i would like to exactly valaite the name of the link..
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
@srselva,

the brackets has a special meaning in vbscript. They are used in regular expression. You need to escape them using escape character "\".

try the below code.

Code:
Browser("name:=xxx").Page("name:=yyy").link("text:=\(zzz\)").click
Regards,
Ankesh
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
Thanks..Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Change property of object (WpfButton) robertosalemi 2 2,610 11-22-2016, 12:43 PM
Last Post: Ankur
  Need an Excel Driven web Program - Ready to Pay as well mayajain 0 1,798 04-22-2015, 05:21 PM
Last Post: mayajain
  Uft 12 - Identification of Google Chrome Object's Property value as plain text teja2730 0 2,578 02-02-2015, 05:22 PM
Last Post: teja2730
  Object doesn't support this property or method: 'webedit' Divya Roopa 3 10,000 03-11-2014, 07:26 AM
Last Post: basanth27
  Error object doesnt support this property or method seerick 7 8,002 06-08-2013, 09:32 PM
Last Post: seerick

Forum Jump:


Users browsing this thread: 1 Guest(s)