selenium-firefoxdriver

How can I use setExperimentalOption through Options using FirefoxDriver in Selenium IDE?

社会主义新天地 提交于 2020-08-08 06:06:33
问题 ChromeOptions options = new ChromeOptions(); options.setExperimentalOption("useAutomationExtension", false); options.setExperimentalOption("excludeSwitches", Collections.singletonList("enable-automation")); I want to log in to Google using Selenium IDE but Google doesn't allow automation frameworks to log in. However, by using the above options it is possible to log in to Google. The above options are defined for ChromeDriver and I need to define them for FirefoxDriver . How can I do that?

Unable to handle location access pop up on firefox using nightwatch.js

╄→гoц情女王★ 提交于 2020-06-17 23:01:58
问题 While executing selenium tests on firefox using nightwatch.js, the test where our application selects geolocation keeps failing because of a pop-up in firefox asking to allow access keeps blocking the test It works fine on chrome when the configuration is set to "chromeOptions": {"args": ["--no-sandbox","--disable-infobars"]} However, the below options for firefox does not seem to work "firefox": { "selenium_port": 1234, "desiredCapabilities": { "browserName": "firefox", "browserVersion": "74

Unable to handle location access pop up on firefox using nightwatch.js

南楼画角 提交于 2020-06-17 22:57:13
问题 While executing selenium tests on firefox using nightwatch.js, the test where our application selects geolocation keeps failing because of a pop-up in firefox asking to allow access keeps blocking the test It works fine on chrome when the configuration is set to "chromeOptions": {"args": ["--no-sandbox","--disable-infobars"]} However, the below options for firefox does not seem to work "firefox": { "selenium_port": 1234, "desiredCapabilities": { "browserName": "firefox", "browserVersion": "74

Unable to handle location access pop up on firefox using nightwatch.js

不想你离开。 提交于 2020-06-17 22:56:42
问题 While executing selenium tests on firefox using nightwatch.js, the test where our application selects geolocation keeps failing because of a pop-up in firefox asking to allow access keeps blocking the test It works fine on chrome when the configuration is set to "chromeOptions": {"args": ["--no-sandbox","--disable-infobars"]} However, the below options for firefox does not seem to work "firefox": { "selenium_port": 1234, "desiredCapabilities": { "browserName": "firefox", "browserVersion": "74

Block request URL selenium firefox python

佐手、 提交于 2020-05-14 07:46:13
问题 Im trying to block certain URLs while acessing a website. Meaning i only make the requests required to proceed. There is one url automatically loading a 5mb code i cant block disabling css by firefox profiles. I read selenium doesnt allow that amount of control but im unshure if there is some way to set it using an addon. However im unable to control block url addon using python. Is there any way apart from modifying the hosts file? I sucessfully blocked the urls using network monitor

Block request URL selenium firefox python

白昼怎懂夜的黑 提交于 2020-05-14 07:45:11
问题 Im trying to block certain URLs while acessing a website. Meaning i only make the requests required to proceed. There is one url automatically loading a 5mb code i cant block disabling css by firefox profiles. I read selenium doesnt allow that amount of control but im unshure if there is some way to set it using an addon. However im unable to control block url addon using python. Is there any way apart from modifying the hosts file? I sucessfully blocked the urls using network monitor

Unable to create session error using GeckoDriver and Firefox through Selenium and Java org.openqa.selenium.WebDriverException

会有一股神秘感。 提交于 2020-03-04 23:06:22
问题 I'm able to run tests with Intellij but when I run the same tests via Jenkins I get the following error. org.openqa.selenium.WebDriverException: java.net.ConnectException: Failed to connect to localhost/0:0:0:0:0:0:0:1:46285 Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host: 'M-AMS-DEVELOPER', ip: '108.61.189.113', os.name: 'Windows Server 2012 R2', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_241' Driver info: driver.version:

How to quit all the Firefox processes which gets initiated through GeckoDriver and Selenium using Python

倖福魔咒の 提交于 2020-01-24 20:15:43
问题 I am using python 3.7 + selenium + geckodriver.exe + firefox 70.0.1x64,I know driver.quit() could close firefox window,but in some situation I can not quit firefox totally,I do not know why,this is my code: from selenium import webdriver import time def func1(): driver = webdriver.Firefox() i = 0 while True: try: if i > 10 and driver is not None: driver.quit() driver = None print('quit success') i += 1 print(i) time.sleep(1) except KeyboardInterrupt: if driver is not None: driver.quit()

How to open Firefox Developer Edition through Selenium

試著忘記壹切 提交于 2020-01-21 14:37:53
问题 Following some tutorials on Selenium, I installed the geckodriver . In order to run a simple code on python to run Selenium, I have to specify this path in the command line: export PATH=$PATH:/home/xx/Downloads/geckodriver-v0.24.0-linux64 But I want Selenium to open the Developer edition I have as it contains the extension I want to test: When I sepcify the path for the Developer edition executable: export PATH=$PATH:/home/xx/Documents/ff_extension/firefox/ Then run my python script: from

Selenium 2 Firefox Profile Change Location

[亡魂溺海] 提交于 2020-01-13 04:42:16
问题 For many weeks now, I have been looking around and I have not seen anything regards to changing the location the Firefox Profile saves to. I am using a specific Firefox profile, however, when the tests run the session is created in /tmp/. I would like the session to start up in a different location and save the files it uses in a location like: /var/tmp/. Is there any way to do this? Note: This is not a question as to where I get the RemoteWebDriver to use a specific Firefox profile. Edit: I