Answered Questions

  • QTP code If condition question

    Purpose of the script is:1. Take value from the datatable2. Take row value from the application. Values are displayed in a webtable3. Compare both the values 4. Come out of the For loop when they match or else continue with the loop till the last row Code is:If Browser("A").Page("B").WebTable("C").Exist Then TotalRows = Browser("A").Page("B").WebTable("C").RowCountEnd If Datatable_value = datatable("Datatable_value...

    adisgee

    • Jul 11th, 2007

    Ideally the code should be working fine, but since it is not as you mention, a temp work around can be:Within the "if loop", after you perfrom the desired operation, add a statement, i = Tot...