Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TableName change
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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.
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Why is the name changing every time? Check that multiple instances of your application are not open while recording.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
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 .
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
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.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
THANKS....
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
Try this
Code:
Browser("Testing Jobs |Software").Page("TestingJobz.com : Visitors").WebTable("Job Title :*").GetCellData (3, 2)

correct me if i am wrong
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)