Executing selenium test cases (test cases in a robot frame) using jenkins

I have test cases that I wrote within a robot. I wrote one library for the robot framework, but this is all for selenium. I am using Firefox browser. These test cases work fine if I execute the command line. If I start test cases using jenkins this error shows. I am using shell command to start the robot framework.

NoSuchElementException: Message: Unable to locate element: {"method":"link text","selector":"Config Box"}
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpkRQ7Lc/extensions/fxdriver@googlecode.com/components/driver-component.js:10770)
at FirefoxDriver.prototype.findElement (file:///tmp/tmpkRQ7Lc/extensions/fxdriver@googlecode.com/components/driver-component.js:10779)
at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpkRQ7Lc/extensions/fxdriver@googlecode.com/components/command-processor.js:12661)
at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpkRQ7Lc/extensions/fxdriver@googlecode.com/components/command-processor.js:12666)
at DelayedCommand.prototype.execute/< (file:///tmp/tmpkRQ7Lc/extensions/fxdriver@googlecode.com/components/command-processor.js:12608)

      

+3


source to share


1 answer


When running tests with Jenkins, there are different timings when items are available. Try using keywords Wait For ...

or Sleep

.



+1


source







All Articles