Micro Focus QTP (UFT) Forums
Regarding Shell Scripting - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Regarding Shell Scripting (/Thread-Regarding-Shell-Scripting)



Regarding Shell Scripting - demoqtp - 03-27-2015

Hi

In My application , In one page I have a webtable which displays list of roles assigned to each user. This Web Table is has scroll bar so when page opens we can see 41 rows and when you scroll down you can see the remaining rows. If I want to know any role name which is present down in the table I am not able to capture it.
So My question is How can I use shell script to move the scroll bar down to the last row then calculate the total number of rows present in that table and then perform the required operations?

Any help is appreciated.Thanks in advance


RE: Regarding Shell Scripting - supputuri - 03-30-2015

Does the table data loads dynamically or can you see the last row in your developer toolbar.

If you are able to see the last row in developer tool bar then you can use method to get the row count and iterate.
If not then you might have to scroll the scrollbar to bottom either using page down (not suggestable) or using java script (more accurate and works even the system locked or focus is on other apps).

If you are able to see the last row then I w I uld suggest to use the dynamic xpath to get the role directly which will be quick and work like a charm.
let us know if you need any more help on this


RE: Regarding Shell Scripting - demoqtp - 03-31-2015

Thanks for the reply.

can you please send me the code. I have tried everything but no luck.
Thanks in advance