12-10-2010, 12:28 PM
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!
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!