Closed Mehranali669 closed 11 months ago
@Mehranali669 please provide the full code you used including the path to the extension you want to add
this is the code i was running. also when i use uc_driver=True it wont work the chrome is like its crash or some thing
from selenium_profiles.webdriver import Chrome
from selenium_profiles.profiles import profiles
from seleniumwire import webdriver
profilenew = profiles.Windows() # or .Android
options = webdriver.ChromeOptions()
options.add_extension(r"C:\Users\MehranAli\Desktop\moto\webAuto\extentions\emptyProxy");
# options.add_argument(r"--load-extension=C:\Users\MehranAli\Desktop\moto\webAuto\extentions\emptyProxy");
# options.add_argument(r"load-extension=C:\Users\MehranAli\Desktop\moto\webAuto\extentions\emptyProxy");
driver = Chrome(profilenew, options=options,uc_driver=False, seleniumwire_options=True)
# get url
driver.get('https://google.com/')
@Mehranali669
.crx
or .zip
files
options.add_extension(r"C:/some_path/extension.crx")
options.add_argument(r"--load-extension=C:/some_path/extension")
uc_driver=True
?profile["options"]["extension_paths"] = ["C:/some_path/extension"]
UPDATE This seems to occurr because of the following line: https://github.com/kaliiiiiiiiii/Selenium-Profiles/blob/109382aa096065ead5d559f9a1830d764b64bc5e/src/selenium_profiles/webdriver.py#L151
Todo: Add custom selenium-driverless.webdriver.ChromeOptions
unpack extentions are not loading i was using this but in my case i want to load some unpack extention these extentions are not loading in driver. i have tried such things but nothing is working in chrome 116
code i have tried