Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding textfield using XPATH
#1
Not Solved
Hi

I've recently switched over from Selenium to QTP11 and am trying to get a script working using a XPATH

(/descendant::input[starts-with(@id,'uniqueid-')])[1]

The problem is the ID is uniquely generated each time so the above was an XPATH which worked in selenium to select the textfield I required. Changing the 1 to 2, then 3, etc to access other text fields.

I've been looking around and have seen QTP11 supports XPATH but I cannot find an example of how to implement this

Can anyone shed some light on this?

thanks
Reply


Messages In This Thread
Finding textfield using XPATH - by NewtoQTP - 03-15-2011, 10:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation UFT is not finding object in runtime but able to locate the object from repository amar.vallapreddy 1 2,748 02-25-2014, 02:22 PM
Last Post: guin.anirban
  XPath for web link throws error srselva 1 1,834 12-11-2012, 12:10 AM
Last Post: supputuri
  Finding the correct Link mv8167 2 4,445 01-24-2012, 07:58 PM
Last Post: mv8167
  Finding the correct WebTable mv8167 0 2,441 12-07-2011, 02:38 AM
Last Post: mv8167
  Finding Links with Paren's mv8167 10 7,688 09-27-2011, 02:46 PM
Last Post: Ankesh

Forum Jump:


Users browsing this thread: 2 Guest(s)