Micro Focus QTP (UFT) Forums
Find Row For Order Number - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Find Row For Order Number (/Thread-Find-Row-For-Order-Number)



Find Row For Order Number - Russell - 12-15-2010

QTP counts the row and just click on the arrow button on the row. On the left hand side there's a order number and same row there's arrow sigh on the right to click to save the order as pending. Each time new order comes that row keep changing and because QTP doesn't see the specific order number but the what row was in.

Code:
Browser("T").Page("T").Frame("T").Link("PO").Click
Browser("T").Page("T").Frame("F").WebList("F").Select "All"
Browser("T").Page("T").Frame("F").Image("b").FireEvent "onmouseover"
Browser("T").Page("T").Frame("Fr").Image("b").Click
Browser("T").Page("T").Frame("T").Link("A").Click
Browser("T").Page("T").Frame("T").Link("R").Click
Browser("T").Page("T").Frame("T").Link("F").Click
Browser("T").Page("T").Frame("M").Link("S").Click
Browser("T").Dialog("W").WinButton("OK").Click
I tried to fix it with GetRoProperty(row) the put it in a loop and a if statment.

any help.
Russ


RE: Find Row For Order Number - manishbhalshankar - 12-15-2010

Hi Russell,

You can use GetRowWithCellText to get the row number of the particular order and then use this row number for the Arrows.


RE: Find Row For Order Number - Russell - 12-18-2010

Thank you Manish. It's working now.