itaakashcom
asked on
Selenium tests failing on jenkins
Env: jenkins on CentOS
java: 1.8
Selenium version: 2.48.2
Web Application Technology: Spring Boot
Test Framework: TestNG
Scenario that involve clicking of a 'Submit' button(E.g. Submitting sign up form, submitting reset password form), test cases sometimes pass & other times fail in random fashion,
There are inconsistent results.
I have tried providing 'wait' & used 'enter' key of keyboard instead of a click.
But still no success.
java: 1.8
Selenium version: 2.48.2
Web Application Technology: Spring Boot
Test Framework: TestNG
Scenario that involve clicking of a 'Submit' button(E.g. Submitting sign up form, submitting reset password form), test cases sometimes pass & other times fail in random fashion,
There are inconsistent results.
I have tried providing 'wait' & used 'enter' key of keyboard instead of a click.
But still no success.
Why you are trying to rig the test for success?
Is there any pattern on the failing tests? Can you identify if this is a network error?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This issue was solved by putting sleep before a click event.