Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help on a RegExp issue
#1
Not Solved At 
I am junior automation test engineer using QTP, currently i met an issue below need use RegExp as below:
There is data grid includes three webelements like
"WebElement: Physical Large machine", innertext is "Physical Cloud Service BL280c G6 - 2 Processor Intel Xeon 5600,4 core per processor, 96GB of memory, Non-SAN ready, 4 cores per processor, 32 server nodes per 10U"
"WebElement: Virtual small machine:" innertext is "...."
"WebElement: Firewall Rules", innertext is "...."
Now i want to choose the first line item "WebElement: Physical Large machine", the input parameter might be "Physical Cloud Service BL280c G6", how should i use RegExp to let QTP choose the correct line item?
Please help on this!

Thanks in adanvance!
Reply
#2
Not Solved
Hi Cuit,

in the object properties of your WebElement change the text to: Physical Large machine.* and check the regular expression check box.
Reply
#3
Not Solved
use ordinal identifier....

something like:

B().P().WebElement("name:=xxx","index=n")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't we directly compare against regexp anu05446 2 2,863 04-19-2014, 12:37 AM
Last Post: Parke
  RegExp in RepParam mv8167 1 2,770 11-04-2011, 07:13 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 1 Guest(s)