![]() |
|
How to get text of weblement - 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: How to get text of weblement (/Thread-How-to-get-text-of-weblement) Pages:
1
2
|
RE: How to get text of weblement - sudhirzpatil - 12-21-2010 Hi Manish, I have tried it with below code. Code: For i = 1 To DataTable.GetRowCountBut It displayed blank values for some iteration. For Ex. If Run for All is set For first iteration it displayed as below 1. Expected velue 2. Blank value 3. Blank value. ( I have used three parameters) For second iteration it displayed 1. Expected value 2. Expected value 3. Blank value. For third iteration it displayed 1. Expected value 2. Expected value 3. Expected value If I set Run for one Iteration then it displayed 1.Expected Value 2. Blank value 3. Blank value Can you please tell where we r wrong in the For Loop ? Thanks Sudhir RE: How to get text of weblement - manishbhalshankar - 12-21-2010 Please provide the screenshot of your datatable. For me the above loop is working in both the settings. RE: How to get text of weblement - sudhirzpatil - 12-21-2010 Hi Manish, Please find the attached screen shot of the Datatable. RE: How to get text of weblement - manishbhalshankar - 12-21-2010 Hi Sudhir, Output CheckPoint will always put the values in 1st row of datatable. Change your script settings to Run one iteration and all the code except login should be placed in For loop. First statement in the loop should be DataTable.SetCurrentRow(i). Try this out. RE: How to get text of weblement - sudhirzpatil - 12-23-2010 Yes Manish, Its working as per modified For...Loop. One minor change I made i have added Browse(" ").Back for second iteration ![]() Thanks again. |