Добрый день, я хочу открыть расширение
MetaMask с помощью селениума но после открытие показывается ошибка
Traceback (most recent call last):
File "C:\Desktop2.0\coding\New folder\Idle.py", line 8, in <module>
driver = webdriver.Chrome(options=chop)
File "C:\Users\Rasul\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__
RemoteWebDriver.__init__(
File "C:\Users\Rasul\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\Rasul\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\Rasul\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Rasul\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: failed to wait for extension background page to load: chrome-extension://nkbihfbeogaeaoehlefnkodbefgpgknn/background.html
from timeout: Timed out receiving message from renderer: 10.000
Для теста я поставил другую расширение место MetaMaskа это сработало но мне не обходимо использовать именно MetaMask
from selenium import webdriver
from time import sleep
chop = webdriver.ChromeOptions()
chop.add_extension("9.8.3_0.crx")
sleep(3)
driver = webdriver.Chrome(options=chop)
sleep(3)
driver.get('https://pancakeswap.finance/swap')