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
#2
Not Solved
Could you explain in detail???

what are the links u want to click and what and all u want to omit.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)