Robot test failed due to following error . keyword capture page screenshot could not be run on failure : no browser is open'

726 views
Skip to first unread message

abhilash alwandi

unread,
Jan 9, 2014, 3:22:35 AM1/9/14
to robotframe...@googlegroups.com
Am trying to run the basic test after long time (previously it was fine), i am running the google test on chrome and i have added the chrome driver in my python folder (where i have installed the python).
Here is the snapshot of the error given ...

i.imgur.com



Please help me in solving this issue.


Thanks,
Abhilash

Kevin O.

unread,
Jan 9, 2014, 9:30:31 AM1/9/14
to robotframe...@googlegroups.com
I ran into this issue recently as well. It went away when I went to a older version of Selenium IIRC.

abhilash alwandi

unread,
Jan 17, 2014, 4:57:22 AM1/17/14
to robotframe...@googlegroups.com
Issue Description:
Chrome driver not responding when we run the test and throws a warning saying that , WARN:	Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open.


Steps to reproduce (if relevant, you MUST provide a simplified html page or
link to public site):
1. Go to command propmt.
2. Run the robot framework test ex: pybot abc.txt
3. The test will open the chrome browser and i will not load the URL.
4. Then throws an WARN saying ,
WARN:	Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open.

5.Then all the test fails.
6.Then the browser closes.
issue_chrome.png

Kevin O.

unread,
Jan 17, 2014, 12:20:13 PM1/17/14
to robotframe...@googlegroups.com
2.3 is quite an old version of Chromedriver to be using.
Anytime you have a Selenium issue with Chrome, you should report Selenium version, Chromedriver version, and Chrome version.

Eric Z (Derp)

unread,
May 30, 2014, 4:07:38 PM5/30/14
to robotframe...@googlegroups.com
This is interesting, I'm running into the same issue. As I reached of milestone of 156 tests, all subsequent tests start to fail with the same error. I frankly don't care about it cuz it forces me to run in parallel which makes me believe it's only a time issue. For me, any test that exceeds 1hour and roughly 10mins I get ....

WARNKeyword 'Capture Page Screenshot' could not be run on failure: No browser is open
And then a FAIL on the test.

When I run this test on it's own or in parallel it runs as expected and passes.

I'm on chrome driver version 2.9 on Robot Framework 2.8.3 (Python 2.7.6 on darwin)

Abhilash, I would consider running running your tests in parallel.
Reply all
Reply to author
Forward
0 new messages