[英]Intellisense not working for selenium in vs code with python
在使用python在vscode中編寫測試時,intellisense不適用於selenium方法。
我已經通過pip安裝了selenium。 我安裝了這些擴展: - Magic Python - Python - Python擴展包 - Python測試資源管理器 - 測試資源管理器UI
在settings.json中,我有這一行:“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)
啟用Jedi完成了這項工作。 關閉。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.