51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3404|回复: 3
打印 上一主题 下一主题

[原创] rf在pybot模式下无法打开谷歌浏览器 jybot模式下可以正常运行?

[复制链接]
  • TA的每日心情
    无聊
    昨天 09:15
  • 签到天数: 424 天

    连续签到: 5 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2018-11-26 09:44:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    我使用RF调用谷歌浏览器 使用jybot的运行方式 可以成功打开浏览器  但是使用pybot的方式就无法打开浏览器 提示  FAIL : No browser is open
    我的case脚本
    1. *** Settings ***
    2. Library           Selenium2Library
    3. *** Test Cases ***
    4. open
    5.     Open Browser    http://www.baidu.com    chrome
    6.     Close Browser
    复制代码
    报错提示
    1. Starting test: Demo.Selenium Demo.Selenium001.open
    2. 20180503 15:31:15.528 :  INFO : Opening browser 'chrome' to base url 'http://www.baidu.com'
    3. 20180503 15:31:16.051 : DEBUG : POST http://127.0.0.1:61849/session {"sessionId": null, "desiredCapabilities": {"platform": "ANY", "browserName": "chrome", "version": "", "javascriptEnabled": true, "chromeOptions": {"args": [], "extensions": []}}}
    4. 20180503 15:31:16.258 : DEBUG : DELETE http://127.0.0.1:61849/session/None {"sessionId": null}
    5. 20180503 15:31:16.583 :  FAIL : No browser is open
    6. 20180503 15:31:16.584 : DEBUG :
    7. Traceback (most recent call last):
    8.   File "<string>", line 2, in capture_page_screenshot
    9.   File "D:\RobotFramework_study\ride_64\PortablePython2.7.5.1\App\lib\site-packages\robotframework_selenium2library-1.7.4-py2.7.egg\Selenium2Library\keywords\keywordgroup.py", line 15, in _run_on_failure_decorator
    10.     return method(*args, **kwargs)
    11.   File "D:\RobotFramework_study\ride_64\PortablePython2.7.5.1\App\lib\site-packages\robotframework_selenium2library-1.7.4-py2.7.egg\Selenium2Library\keywords\_screenshot.py", line 90, in capture_page_screenshot
    12.     if hasattr(self._current_browser(), 'get_screenshot_as_file'):
    13.   File "D:\RobotFramework_study\ride_64\PortablePython2.7.5.1\App\lib\site-packages\robotframework_selenium2library-1.7.4-py2.7.egg\Selenium2Library\keywords\_browsermanagement.py", line 539, in _current_browser
    14.     raise RuntimeError('No browser is open')
    15. 20180503 15:31:16.584 :  WARN : Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
    16. 20180503 15:31:16.585 :  INFO : chrome
    17. 20180503 15:31:16.603 :  FAIL : HTTPError: HTTP Error 503: Service Unavailable
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 08:35
  • 签到天数: 1691 天

    连续签到: 5 天

    [LV.Master]测试大本营

    2#
    发表于 2018-11-27 09:23:17 | 只看该作者
    有正确配置chromedriver吗?
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 09:59
  • 签到天数: 1410 天

    连续签到: 5 天

    [LV.10]测试总司令

    3#
    发表于 2018-11-27 10:42:31 | 只看该作者
    检查下驱动
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 07:25
  • 签到天数: 2685 天

    连续签到: 5 天

    [LV.Master]测试大本营

    4#
    发表于 2018-11-27 12:42:04 | 只看该作者
    驱动配置有关?
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-6-1 16:12 , Processed in 0.073161 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表