【问题标题】:Intellisense not working for selenium in vs code with pythonIntellisense 不适用于使用 python 的 vs 代码中的 selenium
【发布时间】:2019-06-25 21:00:22
【问题描述】:

使用 python 在 vscode 中编写测试时,智能感知不适用于 selenium 方法。

我已经通过 pip 安装了 selenium。 我安装了这些扩展: - 魔法蟒 - Python - Python 扩展包 - Python 测试资源管理器 - 测试资源管理器用户界面

在 settings.json 我有这一行: “python.jediEnabled”:假

import unittest
import json
from selenium import webdriver

class BaseClass(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        cls.driver = webdriver.Chrome()
        cls.driver.maximize_window()
        cls.driver.implicitly_wait(5)
        cls.driver.get(cls.url)

【问题讨论】:

    标签: python selenium intellisense


    【解决方案1】:

    启用 Jedi 完成了这项工作。结束。

    【讨论】:

      猜你喜欢
      • 2019-09-27
      • 2021-10-11
      • 2021-06-18
      • 2020-12-02
      • 2020-08-06
      • 1970-01-01
      • 2021-12-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多