Poll for a component

Help
anandkand
2012-04-26
2013-05-20
  • anandkand
    anandkand
    2012-04-26

    Facing an issue because of time-consuming queries. When the search query is fired, it is not know, how much time it will take for the query to execute. On completion of the query , a table is loaded with the values fetched. Now, the time taken for the query cannot be predicted, so the testcase fails. Is it possible to poll until the table loads?  I have tried with the expression , in the expression step, tried to use component("table reference id") , but this throws an exception , that cannot invoke getcomponent() on null. So how do I poll until the time the table is loaded ? or the query completes?

    Also there is a working dialog that displays as long as the query is in progress. Tried to use this also but again getting exception .

    Please can someone guide on how to accomplish this.

     
  • anandkand
    anandkand
    2012-05-18

    I am using Java for this.