Micro Focus QTP (UFT) Forums

Full Version: TableName change
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to retrive values from webtable , but each time the name of the web table is changing like,
Job Title :_2
Job Title :_3
can i use regular expression here so that i can retrive the values from the table.
i tried with that but it is showing error.

Code is given below
Code:
Browser("Testing Jobs |Software").Page("TestingJobz.com : Visitors").WebTable("Job Title :_2").GetCellData (3, 2)
please help.

thanks.
Why is the name changing every time? Check that multiple instances of your application are not open while recording.
What i need is a standard script so that it get the data from all the tables with table name Job Title :_2 , Job Title :_3 .
oh you mean you have multiple tables in a single web page than just go ahead with normal recording... regex would have helped you at a place where one object is there and whose name gets changed on every different iteration.
THANKS....
Try this
Code:
Browser("Testing Jobs |Software").Page("TestingJobz.com : Visitors").WebTable("Job Title :*").GetCellData (3, 2)

correct me if i am wrong