zoukankan      html  css  js  c++  java
  • Selenium+Python自动化测试学习问题总结笔记

    1.问题描述:不能导入自定义类

      错误内容:This inspection detects names that should resolve but don't. Due to dynamic dispatch and duck typing, this is possible in a limited but useful number of cases. Top-level and class-level items are supported better than instance items

      截图:(count.py文件不能导入在相同路径下的pub.py的方法)

      解决方法1:将导入部分写成:from WebTest.project.pub import add (将路径明确写入)

      解决方法2:进入:File—setting—Bulidout,Excution,Deployment—Console—Python Console 如下图操作

     

     之后右击项目,如下图操作

     

     

  • 相关阅读:
    将excel里的有效数据提取出来
    基础二
    状态码
    基础(一)
    爬虫页面
    交集,并集,差集,函数
    魔法和运算器
    Java接口
    Java封装
    Java抽象类
  • 原文地址:https://www.cnblogs.com/yunfang/p/10676519.html
Copyright © 2011-2022 走看看