11-27-2009, 07:31 PM
Sure, all what you have described above can be achieved.
Run time Capture - If you intend to use the id no in the same run session you can go for Environment variables/OutPut Values/ or simply capture it into the run time data table.
If you intend to use the id no generated in one session into another run session then you may go for capturing the value into a txt file. The txt file creation, opening, reading, writing can all be achieved by FSO (FileSystemObject Model)
is it possible to dynamically find a URL in a page containing the above ID and then click it - Yes. Use child objects and using a looping structure, try to find the required value using instr function. Once found you can click on it.
is it possible to always select the last link displayed in a table on the web page? -
Find the no of rows in the webtable at run time using object.RowCount
Using ChildItems method, click on the required link
Hope it helps!
Run time Capture - If you intend to use the id no in the same run session you can go for Environment variables/OutPut Values/ or simply capture it into the run time data table.
If you intend to use the id no generated in one session into another run session then you may go for capturing the value into a txt file. The txt file creation, opening, reading, writing can all be achieved by FSO (FileSystemObject Model)
is it possible to dynamically find a URL in a page containing the above ID and then click it - Yes. Use child objects and using a looping structure, try to find the required value using instr function. Once found you can click on it.
is it possible to always select the last link displayed in a table on the web page? -
Find the no of rows in the webtable at run time using object.RowCount
Using ChildItems method, click on the required link
Hope it helps!
Want to fast track your QTP/UFT Learning? Join our UFT Training Course