Micro Focus QTP (UFT) Forums
Scroll Browser to display Specific Row in WebTable - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Scroll Browser to display Specific Row in WebTable (/Thread-Scroll-Browser-to-display-Specific-Row-in-WebTable)



Scroll Browser to display Specific Row in WebTable - kdunn - 06-02-2018

I am working with UFT 12.53 on a web application.
I have a script where I dynamically add a new record to a web table that initially appears as the last row of the table.
Since this is a static position I need no assistance here.

However, the list is resorted alphabetically and my recently added record is repositioned. I then go in edit and expire the same record and now I need to determine its positioning. I have no issue selecting the row but the table is not paginated so the row may or may not be in view .

I wish to get the x,y coordinates of a cell on the specified row in order to scroll the browser and ensure the row is in view before executing a bitmap capture for reporting.

Any ideas?

ID/ Description /Code /Effective Date                  /Expiry Date                /OOS /Office /Field /Counted 
77/AutoTest    /AT    /2018-05-25T16:33:29.653 /2018-05-31T01:18:18 /ON    /ON    /ON   /ON            Edit Button   Expire Button


RE: Scroll Broswer to display Specific Row in WebTable - Ankur - 06-14-2018

Here are some ideas for your case.

#1 Choose a unique value in the row which you are concerned about. Then using a loop try to find if that value exist on the first page, if it exists your job is done. If it doesn't, simply click on the paginated link and run loop over it.

#2 Find out if you can disable pagination in your application OR if for testing purposes you can increase the number of records that appear in your test instance 'view'.


RE: Scroll Broswer to display Specific Row in WebTable - kdunn - 06-15-2018

(06-14-2018, 10:26 PM)Ankur Wrote: Here are some ideas for your case.

#1 Choose a unique value in the row which you are concerned about. Then using a loop try to find if that value exist on the first page, if it exists your job is done. If it doesn't, simply click on the paginated link and run loop over it.

#2 Find out if you can disable pagination in your application OR if for testing purposes you can increase the number of records that appear in your test instance 'view'.

Thanks Ankur,

Issue was resolved by disabling Internet Options->Advanced->Browsing->Smooth Scrolling


RE: Scroll Browser to display Specific Row in WebTable - Ankur - 06-15-2018

Good to know your issue is solved now.

Also, thanks for the solution, it may help someone in future with similar problem.