firefox-profile

Selenium Tests take several minutes to start when loading a profile

試著忘記壹切 提交于 2021-02-05 08:59:09
问题 I am just trying to figure out if anyone else has seen their Selenium tests run significantly slower (takes 2+ minutes to start) when they load a profile into the FirefoxDriver as shown in: Selenium a default profile for the Firefox The question originator of the above post mentioned this issue in a comment, but never updated whether he fixed this slowness issue. At some point my tests stopped running all together and I started getting the error org.openqa.selenium.WebDriverException: java.io

How to use existing login token for telegram web using selenium webdriver

荒凉一梦 提交于 2021-01-01 07:12:37
问题 I'm trying to read telegram messages from https://web.telegram.org with selenium. When i open https://web.telegram.org in firefox i'm already logged in, but when opening the same page from selenium webdriver(firefox) i get the login page. I saw that telegram web is not using cookies for the auth but rather saves values in local storage. I can access the local storage with selenium and have keys there such as: "dc2_auth_key", "dc2_server_salt", "dc4_auth_key", ... but I'm not sure what to do

How to use existing login token for telegram web using selenium webdriver

独自空忆成欢 提交于 2021-01-01 07:12:33
问题 I'm trying to read telegram messages from https://web.telegram.org with selenium. When i open https://web.telegram.org in firefox i'm already logged in, but when opening the same page from selenium webdriver(firefox) i get the login page. I saw that telegram web is not using cookies for the auth but rather saves values in local storage. I can access the local storage with selenium and have keys there such as: "dc2_auth_key", "dc2_server_salt", "dc4_auth_key", ... but I'm not sure what to do

Downloading file through Selenium Webdriver in python

不羁岁月 提交于 2020-06-22 12:56:47
问题 I am writing a program to automate web interaction through selenium webdriver in python. I got stuck in last step when I click on the "download" button through script, a window pop-up occours on the screen,with default option "Open with" selected. I want my program to first click on the option "save file" and then click on "OK". I have used following piece of code to set up Firefox profile profile = webdriver.FirefoxProfile() profile.set_preference('browser.download.folderList', 2) profile

Windows popup interaction for downloading using selenium webdriver in python

强颜欢笑 提交于 2020-06-12 07:43:06
问题 I am making a programme to automatically download the data using selenium webdriver in python. When i click on "download" button following popup occours . with default option "Open with" selected. I want my program to first click on the option "save file" and then click on "OK". I have used following piece of code to set up Firefox profile profile = webdriver.FirefoxProfile() profile.set_preference('browser.download.folderList', 2) profile.set_preference('browser.download.manager

“unknown error”,“message”:“connection refused”,“stacktrace” while trying to use firefoxprofile through GeckoDriver with Selenium on Mac OS X

十年热恋 提交于 2020-01-30 09:00:09
问题 I am getting connection refused error while creating a firefox driver. System.setProperty("webdriver.gecko.driver", "path to gecko driver"); FirefoxOptions options = new FirefoxOptions(); options.setLogLevel(FirefoxDriverLogLevel.FATAL); options.setAcceptInsecureCerts(true); options.addArguments("-profile", "./firefoxprofile"); options.setHeadless(true); LOGGER.info("Completed setting firefox optons"); WebDriver driver = new FirefoxDriver(options); Log: 1550014357421 mozrunner::runner INFO

AttributeError: 'FirefoxProfile' object has no attribute 'update' error usingFirefoxProfile through Selenium and Python [closed]

牧云@^-^@ 提交于 2020-01-16 08:35:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Hello Guys I'm having problem on my code. from selenium import webdriver import time profile = webdriver.FirefoxProfile() profile.set_preference('network.proxy_type',1) profile.set_preference('network.proxy.http',"91.xx.xxx.xx") profile.set_preference('network.proxy.http_port',xxxx) # profile.update_preference()

How to load firefox profile with Python Selenium?

白昼怎懂夜的黑 提交于 2020-01-13 11:28:09
问题 I'm trying to get Python Selenium to work on my Windows Machine. I've upgraded to the latest versions of Firefox, Selenium, Geckodriver, but I still receive the below error: Python Script from selenium import webdriver driver = webdriver.Firefox() Error Traceback (most recent call last): File "run.py", line 17605, in <module> File "<string>", line 21, in <module> File "site-packages\selenium\webdriver\firefox\webdriver.py", line 77, in __init__ File "site-packages\selenium\webdriver\firefox

Set firefox profile protractor

橙三吉。 提交于 2020-01-11 04:13:06
问题 I try to use this code: var makeFirefoxProfile = function (preferenceMap) { var deferred = q.defer(); var firefoxProfile = new FirefoxProfile(); for (var key in preferenceMap) { firefoxProfile.setPreference(key, preferenceMap[key]); } firefoxProfile.encoded(function (encodedProfile) { var capabilities = { browserName: "firefox", firefox_profile: encodedProfile }; deferred.resolve(capabilities); }); return deferred.promise; }; getMultiCapabilities: function () { return q.all([

C# fill web form / scratch web page using the current profile / session

最后都变了- 提交于 2020-01-06 08:32:40
问题 I'm trying to play with web forms / loggins, etc. and for this I need to start the browser (chrome, for example) with the current user profile session . I found 2 possible ways of doing this, but I can't finish the code for both of them :) Solution 1 System.Diagnostics.Process.Start(url); This will open a new tab in current session with my user profile (perfect!). But what now? I don't have a variable like "browser" to find elements by id, or something like that. Is there anything I can do