Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with code using different html ids
#1
Not Solved
Hi Everyone,
I need some help with writing a code to select links based on the html id. Problem is that in the application different links have different ids eg id_100987, id_200492, id_101492
And if I use id_.*then it picks up links which I don't want.
code I am using is:

Code:
strSS=Browser(B).Page(P).WebElement("html id:=id_100.*", "index:=0").GetROProperty("innertext")

MsgBox strSS

This works as long as the id starts with html:=id_100 but I want QTP to click on all the links where html id starts with id_100, id_101 and id_200

Please help,
Thanks in advance
Reply


Messages In This Thread
Help with code using different html ids - by NeedQTPHelp - 06-01-2009, 07:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Customized HTML reports in QTP azeem 11 49,342 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,494 03-29-2016, 09:43 PM
Last Post: robertosalemi
  How to attach HTML file to Email Naresh 0 3,049 04-06-2015, 02:04 PM
Last Post: Naresh
  How to generate QTP report in a new file(html)? yogesh kancherla 5 14,845 10-21-2012, 04:52 PM
Last Post: yogesh kancherla
  HTML input element names flexdev 1 3,147 05-25-2012, 06:51 PM
Last Post: falvi

Forum Jump:


Users browsing this thread: 1 Guest(s)