firefox-marionette

Adding second instance of Firefox with Marionette (change port)

随声附和 提交于 2019-12-06 05:55:38
I'm having great difficulties creating two instances of firefox via marionette. Having one instance works fine: Starting up Firefox with marionette enabled: firefox.exe -marionette Controlling it with python: from marionette import Marionette client = Marionette('localhost', port=2828) client.start_session() client.execute_script("alert('o hai there!');") Now I'd like to add a second client alongside the current one, a quick search resulted in the --address command: firefox.exe -marionette --address=localhost:2829 Trying to control it via python: from marionette import Marionette client =

Disable log trace in Marionette driver

可紊 提交于 2019-12-06 04:57:50
问题 When MarionetteDriver is launched it's print log statement for each and every operation.Like 1465882610065 Marionette TRACE conn0 -> [0,138,"executeScript",{"args":[],"newSandbox":false,"script":"return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight,document.body.offsetHeight, document.documentElement.offsetHeight,document.body.clientHeight, document.documentElement.clientHeight);","scriptTimeout":null,"specialPowers":false}] 1465882610066 Marionette TRACE conn0 <-

Disable log trace in Marionette driver

拥有回忆 提交于 2019-12-04 11:22:10
When MarionetteDriver is launched it's print log statement for each and every operation.Like 1465882610065 Marionette TRACE conn0 -> [0,138,"executeScript",{"args":[],"newSandbox":false,"script":"return Math.max(document.body.scrollHeight, document.documentElement.scrollHeight,document.body.offsetHeight, document.documentElement.offsetHeight,document.body.clientHeight, document.documentElement.clientHeight);","scriptTimeout":null,"specialPowers":false}] 1465882610066 Marionette TRACE conn0 <- [1,138,null,{"value":895}] 1465882610070 Marionette TRACE conn0 -> [0,139,"executeScript",{"args":[],

Setup proxy in Firefox browser via marionette driver

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 10:13:04
Firefox 47 and above do not support Selenium Webdriver. I tried to use a Marionette driver to start my tests via Firefox. But my settings in firefox-profile (proxy must set to network.proxy.type = 4 , auto-detect) is no longer applied to Firefox config (Firefox opens but all settings set by default) and my tests do not work without the right PROXY configuration. How can I setup proxy in Firefox browser via a Marionette driver? The old tricks with firefoxProfile or Proxy class do not work any more. All you have to do is pass through requiredCapabilities a JSON with the new Marionette proxy

How to set verbosity of marionette driver?

随声附和 提交于 2019-12-02 11:39:34
问题 Unable to manage verbosity of marionette driver!! Environment: Gecko driver 0.17.0 Selenium java 3.5.3 Firefox 52.3 Tried: FirefoxOptions options = new FirefoxOptions(); options.addPreference("log", "{level: info}"); DesiredCapabilities ffCapabilities = DesiredCapabilities.firefox(); ffCapabilities.setCapability("moz:firefoxOptions", options); ffCapabilities.setCapability("marionette", true); driver = new FirefoxDriver(ffCapabilities); Log Info: INFO: Preferring the firefox binary in these

Selenium install Marionette webdriver

孤街浪徒 提交于 2019-12-01 16:06:19
I have this issue with firefox version 47 https://github.com/seleniumhq/selenium/issues/2110 So, i have tried to add Marionette web driver to fix it: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver But: from selenium.webdriver.common.desired_capabilities import DesiredCapabilities firefox_capabilities = DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = True firefox_capabilities['binary'] = '/Users/myproject/geckodriver-0.8.0-OSX' returns error: selenium.common.exceptions.WebDriverException: Message: 'wires' executable needs to be in PATH. Exception

Selenium install Marionette webdriver

落爺英雄遲暮 提交于 2019-12-01 14:17:01
问题 I have this issue with firefox version 47 https://github.com/seleniumhq/selenium/issues/2110 So, i have tried to add Marionette web driver to fix it: https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver But: from selenium.webdriver.common.desired_capabilities import DesiredCapabilities firefox_capabilities = DesiredCapabilities.FIREFOX firefox_capabilities['marionette'] = True firefox_capabilities['binary'] = '/Users/myproject/geckodriver-0.8.0-OSX' returns error: selenium

Difference between geckodriver and marionette [duplicate]

烈酒焚心 提交于 2019-11-30 03:49:31
This question already has an answer here: Difference between webdriver.firefox.marionette & webdriver.gecko.driver 3 answers I don't fully understand the difference between geckodriver and marionette . Can anyone clarify the difference between them? For example, when I use Selenium WebDriver to control a Firefox browser, I need a geckodriver binary to listen the WebDriver protocol from Selenium. Is Marionette the Firefox extension that actually drives Firefox? Selenium uses W3C Webdriver protocol to send requests to Geckodriver, which translates them and uses Marionette protocol to send them

c# Selenium 2.53 moving to marionette driver after firefox upgrade to 47

南笙酒味 提交于 2019-11-29 08:21:45
I am trying to move into the upgraded firefox web browser automation using selenium. It seems that selenium needs marionette driver to continue working. I followed the instructions set by the devs, downloaded the driver renamed it to wires.exe The following code didnt manage to properly set the PATH to a custom path. System.Environment.SetEnvironmentVariable("webdriver.gecko.driver", "@C:\DOWNLOADS\wires.exe") so i added wires.exe to the debug\bin folder and then wires.exe worked properly but i got the following error System.InvalidOperationException was caught Message=entity not found Source

Taking a whole page screenshot with Selenium Marionette in Python

痴心易碎 提交于 2019-11-29 08:09:34
After the recent Firefox upgrade to version 47 we were forced to install the Marionette extension to keep being able to use selenium webdriver, and in my case also upgrade selenium from 2.52 to 2.53. I use the python version of selenium webdriver to acquire high resolution images of maps rendered in HTML and JavaScript. previously this worked fine in firefox and the screenshots could be taken of the whole page, far beyond the dimensions of my own screen. However with the recent changes the screenshot is taken only of the area visible on screen. I use the following code: import time from