Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP 9.0 - Unable to do select a node containing ";"
#1
Not Solved
I test java applet using QTP 9.0. There are lots of nodes in my application. Like
A
A1
A2
A3
As per the given hirearchy I can select A3 as
Select("A;A1;A2;A3")
I have to pass the node name through data table.
The problem is if the A3 node name is a string as ";".
I cannot select this node because QTP recognizes ";" as node level separator.
And throws error as it cannot reconize the object.
I have tried to pass an escape sequence but problem still exists.
Let me know how can I achieve this objective.
Note : I tried to record my activity for selecting the node here I get
Select("A;A1;A2;;")
But during run this is throwing error.
Reply
#2
Not Solved
Hi rsingh,
Step 1: Get the value in a variable
Step 2: Replace ";;" i.e. vVariable = Replace(vValue, ";;", ";#")with some dummy value as ';#' and store it in a variable
Step 3: Now find the position inturn where '#' here means ';'
Step 4: according to the position select the node

I hope i am answering u'r question.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How Can I Use Regular Expression on Tree View Node Object? ajamaljackson 2 5,004 12-26-2011, 07:21 PM
Last Post: test
  Need regular expression for selecting tree view node veera 2 8,611 12-22-2011, 12:08 AM
Last Post: ajamaljackson
  Use regular Expression to find node item in swfTreeView sischmidt 3 9,736 06-04-2008, 01:13 PM
Last Post: sischmidt

Forum Jump:


Users browsing this thread: 1 Guest(s)