luisxiaomai / robotframework-anywherelibrary

AnywhereLibrary is a cross platform(desktop browser,Android,iOS) testing library for Robot Framework that leverages the [Selenium 2(WebDriver)] libraries internally to control a web browser and [appium] as mobile test automation framework for use with native and hybrid app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: 'NoneType' object has no attribute 'save_screenshot'

ankfeb12 opened this issue · comments

i am getting this error when trying to execute sample webviewTest.txt. Firefox opens but quits unexpectedly. attached logs.Could you please help me.

$ pybot --variable platform:firefox webviewTest.txt

webviewTest

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: AttributeError: 'NoneType' object has no attribute 'save_screenshot'
Search "robotframework-anywherelibrary" in google | FAIL |
Parent suite setup failed:

error: [Errno 61] Connection refused

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: AttributeError: 'NoneType' object has no attribute 'save_screenshot'
webviewTest | FAIL |
Suite setup failed:
error: [Errno 61] Connection refused

Also suite teardown failed:
AttributeError: 'NoneType' object has no attribute 'quit'

1 critical test, 0 passed, 1 failed
#1 test total, 0 passed, 1 failed

I guess it may be the selenium installed was not matched to the firefox versin, try to update selenium using command: pip install selenium --upgrade.

You can try chrome instead and take a look at result.

upgraded the selenium and tried with other platforms. still no success.

If you used proxy or if you network can connect to google. Need more information, thanks.

upgrading the firefox fixed my problem. thanks a lot .