SlvTable has the click method, by the x, y has to be the position relative to the parent control (table or the grid here.) so , get the top location of the table itself, then run some basic math cacaluation, you can click any cells with links, Here is one snippet to click [3,3] links, myx=browser("HomePage).Page("Module1").SlvWindow("RootVisualWrapper").SlvTable("Grid1").GetCellProperty(3,3,"x") parentx=browser("HomePage).Page("Module1").SlvWindow("RootVisualWrapper").SlvTable("Grid1").GetROProperty("x") w=browser("HomePage).Page("Module1").SlvWindow("RootVisualWrapper").SlvTable("Grid1").GetCellProperty(3,3,"width") rx=myx + w/2-parentx browser("HomePage).Page("Module1").SlvWindow("RootVisualWrapper").SlvTable("Grid1").Click rx, ry |
Tuesday, January 31, 2012
HP QTP, Click LInk in specified cells in the data grid of siliverlight, SlvTable
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment