cancel
Showing results for 
Search instead for 
Did you mean: 

Click action fails ramdomly for the same test

SOLVED
Highlighted
Occasional Contributor

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?
1 ACCEPTED SOLUTION

Accepted Solutions
Contributor

Re: Click action fails ramdomly for the same test

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.

View solution in original post

2 REPLIES 2
Contributor

Re: Click action fails ramdomly for the same test

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.

View solution in original post

Occasional Contributor

Re: Click action fails ramdomly for the same test

Thank you! 

 

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

New Here?
Join us and watch the welcome video:
Top Kudoed Authors