Forum Discussion

priyalmistry4's avatar
priyalmistry4
Occasional Contributor
6 years ago

Click action fails ramdomly for the same test

Hi,

I am performing desktop testing which requires clicking of few buttons in order to navigate to different screens or display output. I noticed the click action works for a keyword test but fails at times.
I know people have had similar issues and have recommended to use ClickButton method.
I do not see this method in the function.

Any other alternative or any feedback as to why it fails?
  • Please provide the log file for error in the click method fails.

     

    1. May be object is not available in the screen

    2. try to add some delay in between the failed case, may be Click operations was called so quickly that button does not exists or visible on screen.

  • anupamchampati's avatar
    anupamchampati
    Frequent Contributor

    Please provide the log file for error in the click method fails.

     

    1. May be object is not available in the screen

    2. try to add some delay in between the failed case, may be Click operations was called so quickly that button does not exists or visible on screen.

    • priyalmistry4's avatar
      priyalmistry4
      Occasional Contributor

      Thank you! 

       

      I had initially added delay before clicks but had to increase the timeframe. It works now as expected.