Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify object once it is moved on the page
#7
Solved: 11 Years, 8 Months, 3 Weeks ago
Yep. Just call the object with the action....

Browser(something).Page(page).object(name).whatever.

All the HTML id will do is allow you to find the object on the page. It's a unique identifier for the object.

you can now iterate throught the rows and cell once the tableobject is uniquely identified like so:

Code:
For x =2 to Browser(browserobject).Page(pageobject).WebTable(tableobject).RowCount
y = y + cdbl(trim(replace(Browser("browserobject").Page("pageobject").WebTable("tableobject").GetCellData(x, 4),"$","")))
next

This example would sum dollar amounts in each row column 4
Reply


Messages In This Thread
RE: How to identify object once it is moved on the page - by jsknight1969 - 10-02-2009, 11:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to identify an error page occurring in server in between the qtp run. aswini 1 1,891 05-04-2017, 03:52 PM
Last Post: Ankur
  Cannot identify the object "Webtable" korunu 1 2,636 06-29-2016, 05:28 PM
Last Post: Ankesh
  Cannot identify the object "Webtable" korunu 0 1,921 05-11-2016, 12:02 AM
Last Post: korunu
  QTP "Cannot identify the object" richardpaulhall_2 3 13,885 08-20-2015, 11:46 PM
Last Post: ADITI1992
  What is the criteria of identify the object based on Base & option filter properties Suma Parimal 2 3,425 01-28-2014, 06:35 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)