51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2852|回复: 4
打印 上一主题 下一主题

[求助] win10中安装了Python+selenium+pycharm,但是运行脚本报错

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

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2019-1-9 10:02:50 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    我的脚本:
    1. coding=utf-8
    2. from selenium import webdriver
    3. driver = webdriver.chrome
    4. driver.get("https://www.baidu.com")
    5. print(driver.title)
    6. driver.quit()
    复制代码
    报错如下:
    1. C:\Python27\python.exe D:/PY/Test/Test01.py
    2. Traceback (most recent call last):
    3. File "D:/PY/Test/Test01.py", line 5, in
    4. driver.get("https://www.baidu.com")
    5. AttributeError: 'module' object has no attribute 'get'
    6. Process finished with exit code 1
    复制代码


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

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-5-15 04:23 , Processed in 0.062099 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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