Открытие Microsoft Edge в расширенном режиме (вариант использования: открыть через Selenium)Python

Программы на Python
Anonymous
Открытие Microsoft Edge в расширенном режиме (вариант использования: открыть через Selenium)

Сообщение Anonymous »


I am trying to open Ms Edge in Elevated Mode, but I am unable to do so. (Windows 11)
I have tried to open it manually too, but the Elevated option is always set to 'No'.
Image showing Edge Elevated Mode Status:
Изображение
I have tried using the below options via selenium

Код: Выделить всё

    admin_edge_options = webdriver.IeOptions()
admin_edge_options.use_chromium = True
admin_edge_options.add_argument('--ie-mode-test')
admin_edge_options.add_argument('--no-sandbox')
admin_edge_options.add_argument('--disable-gpu')
admin_edge_options.add_argument('--disable-software-rasterizer')
admin_edge_options.add_argument('--disable-dev-shm-usage')
admin_edge_options.add_argument('--disable-extensions')
driver = webdriver.Ie(options=admin_edge_options)
Manually I have tried
  • Run as Administrator:
  • Right-click on the Microsoft Edge shortcut or executable.
  • Choose "Run as administrator" to launch Edge with elevated privileges.
  • Run after Temporarily disabling windows defender
I tried to perform the same on another Machine (windows 10),facing the same issue.
My config.
python 3.12
selenium 4.18.1


Источник: https://stackoverflow.com/questions/781 ... a-selenium

Вернуться в «Python»