Python-尝试运行测试时找不到模块错误

时间:2019-08-10 00:13:16

标签: python-3.x selenium pycharm

尝试在“ TestExecutionScripts”下运行我的“ MaintainsRolesTest”脚本时,出现“找不到模块”错误。

过去2天,我一直在尝试对此进行调查,但没有成功。我已经附加了pycharm项目结构和Pycharm和Python IDLE的sys.path结果。我是使用硒python的初学者

Pycharm Project Structure

Syspath results - Running directly in IDLE - Python

Syspath results-Running in Pycharm

    from AmortizationModel.PageObjects import HomePage
    from AmortizationModel.PageObjects import LoginPage
    from AmortizationModel.PageObjects import MaintainRoles
    from selenium import webdriver

我已经查看了我的环境变量,下面是根据我的调查得出的路径。

有人可以指导我正确的方向,以便我进一步调查并解决问题吗?

0 个答案:

没有答案