简体   繁体   中英

Intellisense not working for selenium in vs code with python

While writing tests in vscode with python, intellisense is not working for selenium methods.

I have installed selenium by pip. I have these extensions installed: - Magic Python - Python - Python Extension Pack - Python Test Explorer - Test Explorer UI

In settings.json i have this line: "python.jediEnabled": false

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)

Enabling Jedi did the job. Closing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM