robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Selenium Library Keywords throw exception and fails the test case #258

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by malarava... on 24 Apr 2013

Hi,

We are getting unusual result some times when running a test case. The Selenium Library Keywords throw an error like "Exception" and fails the entire test case.

The issue gets resolved when we kill the Grid Hub instance that is running in our server & started it again and re-registered the Selenium RCs configured in Hudson service.

Grid Hub version: selenium-server-standalone-2.31.0.jar

Please find below the Robot Framework's Error log

-+KEYWORD: SeleniumLibrary.Open Browser http://www.google.com, _firefox
Documentation: Opens a new browser instance to given URL. Start / End / Elapsed: 20130423 09:01:41.786 / 20130423 09:01:48.848 / 00:00:07.062 09:01:48.845 INFO Opening browser '_firefox' to base url 'http://www.google.com'

-+KEYWORD: SeleniumLibrary.Maximize Browser Window
Documentation: Maximizes current browser window. Start / End / Elapsed: 20130423 09:01:48.855 / 20130423 09:01:48.927 / 00:00:00.072

-+KEYWORD: SeleniumLibrary.Title Should Be Google
Documentation: Verifies that current page title equals title. Start / End / Elapsed: 20130423 09:01:48.931 / 20130423 09:01:49.088 / 00:00:00.157 09:01:49.088 INFO Page title is 'Google'.

+-KEYWORD: SeleniumLibrary.Capture Page Screenshot MainPage.png
Documentation: Takes a screenshot of the current page and embeds it into the log. Start / End / Elapsed: 20130423 09:01:49.091 / 20130423 09:01:50.045 / 00:00:00.954

09:01:50.042 FAIL Exception

Note: In the above scenario Capture Screen Shot Keyword failed by throwing an Exception.

Please help us in resolving this issue since it has a huge impact.

Many Thanks in Advance...

spooning commented 9 years ago

Originally submitted to Google Code by @jussimalinen on 13 Aug 2015

We are moving Selenium Library to github and creating a last release with Robot 2.9 support before stopping the support of this project entirely.

As this project is deprecated, moving to Selenium2Library is necessary for further support and development.