在写测试脚本时,出现如下错误:
Cannot find reference 'webdriver' in 'imported module selenium' less... (Ctrl+F1)
Inspection info: 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.
网上搜索说需要安装selenium,pip安装提示已安装selenium,于是在pycharm里面将Project Interpreter 的路径改为下面的python安装路径,问题就解决了。