Relevant log output 1663163281111 geckodriver INFO Listening on 127.0.0.1:49637ġ663163281617 mozrunner::runner INFO Running command: "C:\\Program Files\\Mozilla Firefox\\firefox.exe" "-marionette" "-log-level=3" "-remote-debugging-port" "49638" "-remote-allow-hosts" "localhost" "-no-remote" "-profile" "C:\\Users\\AKSHAY~1.ARA\\AppData\\Local\\Temp\\rust_mozprofileDsRaUY"ġ663163282023 Marionette INFO Marionette enabledĬonsole.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at C:\\Users\\akshay.aradhya\\AppData\\Local\\Temp\\rust_mozprofileDsRaUY\\4", (void 0))) t_preference('profile', profile_path)ĭriver = webdriver.Firefox(options=options, service=service) How can we reproduce the issue? from selenium import webdriverįrom import Options as FirefoxOptionsįrom _profile import FirefoxProfileįrom import Service as FirefoxServiceĭriver_path = "./src/drivers/geckodriver_win64.exe" This can be verified by looking at the geckodriver.log and seeing the profile path in the command and also looking at the profile_path folder which gets populated by a bunch of files and folders. Setting the profile via the arguments is the only way it seems to use the profile_path. The only way that does seem to work is passing it as an argument Method 4 (Working) options.add_argument("-profile") This can be verified by looking at the geckodriver.log and seeing the profile path in the command. Method 3 (Failing) profile = FirefoxProfile(profile_path)ĭriver = webdriver.Firefox(options=options, service=service, firefox_profile=profile)Īll of these methods result in a temp profile being created somewhere else. ![]() Method 2 (Failing) profile = FirefoxProfile(profile_path) ![]() Method 1 (Failing) t_preference('profile', profile_path) ![]() I have tried many different ways to set the profile. It seems like firefox does not use the profile path when passed via options.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |