firefox

Debugging: Is it possible to see value of JS variable in real time?

回眸只為那壹抹淺笑 提交于 2021-02-07 20:32:42
问题 Is there any tool (preferably extension/add-on to any browser) that allows you to see all the value changes of the desired JS variable in real time? Previously I did something like this (in pure JS): var someVariable; var previousValueOfSomeVariable; var f = function() { if (previousValueOfSomeVariable != someVariable) { console.log(Date.now(), someVariable); previousValueOfSomeVariable = someVariable; } } var TO = setInterval(f, 100); It did the trick, but was, of course, inefficient (in

Download file with firefox bypassing popup : Selenium Python

社会主义新天地 提交于 2021-02-07 17:23:54
问题 I am using selenium with python to download certain files from this web page. I have been previously using set preferences to create Firefox profile, and they worked perfectly fine. In this case the download pop up opens on same page, despite given preferences it always opens pop up for action (save/open). can anybody help bypassing it and download file automatically without pop up alert ? The preference settings are: fp = webdriver.FirefoxProfile() fp.set_preference("browser.download

How to Hide Firefox Camera Icon Overlay in Windows

早过忘川 提交于 2021-02-07 12:39:49
问题 I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera. The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using mozGetUserMedia: Here you can see it at the top of the screen. I have tried searching through the options on the about:config page, but I can't find any setting that disables this. It only shows up on Windows, and not OS X. How can I disable this icon? 回答1:

How to Hide Firefox Camera Icon Overlay in Windows

眉间皱痕 提交于 2021-02-07 12:38:59
问题 I'm working on a kiosk project that uses Firefox and mozGetUserMedia to access an attached camera. The problem is, even using kiosk addons (like mKiosk) this icon appears at the top of the screen whenever the camera is accessed using mozGetUserMedia: Here you can see it at the top of the screen. I have tried searching through the options on the about:config page, but I can't find any setting that disables this. It only shows up on Windows, and not OS X. How can I disable this icon? 回答1:

FireFox 72.0.2 on Mac Stuck in “Remote Control” mode

纵饮孤独 提交于 2021-02-07 10:50:47
问题 72.0.2 (64-bit) on MacOS 10.14.6 (18G3020) Ran a python selenium script for automation and after that FF still shows the orange stripes bar and an icon which says "Browser is under remote control" Rebooted machine but no luck. Is there way to take out FF in normal mode now? (Not able to access saved logins in this mode) Thanks! 回答1: This did the trick. Setup FireFox sync account Create a new empty profile and make it default Restart FF with that profile Login to FF sync and get back bookmarks

Firefox 57 does not load geckoservice in Selenium during end-to-end testing

左心房为你撑大大i 提交于 2021-02-07 10:15:30
问题 I am trying to load Firefox to test my web application using selenium. I am getting SessionNotCreatedError: Unable to create new service: GeckoDriverService error when I specify firefox in the capabilities . Here is how it looks like: var config = { sauceUser: process.env.SAUCE_USERNAME, sauceKey: process.env.SAUCE_ACCESS_KEY, framework: 'jasmine2', capabilities: { browserName: 'firefox', version: '57.0', 'screenResolution': '1920x1440' }, specs: [ '*.spec.js' ], jasmineNodeOpts: { showColors

Cross origin request and mixed-content only on Firefox

旧街凉风 提交于 2021-02-07 10:10:24
问题 I'm working on a project which requires HTTPS, so I startup a HTTPS server with self-signed certificate. I also have an HTTP API Server with CORS enabled. I'm able to fetch API request on Chrome. Here the header of preflight response(with HTTP status code 204): Access-Control-Allow-Credentials: true Access-Control-Allow-Headers: appversion,channel,content-type,language Access-Control-Allow-Methods: GET,HEAD,PUT,PATCH,POST,DELETE Access-Control-Allow-Origin: https://localhost:3001 Connection:

Selenium: Trying to get Firefox console logs results in “WebDriverError: HTTP method not allowed”

倖福魔咒の 提交于 2021-02-07 09:55:01
问题 I'm trying to capture console errors in my selenium tests (node environment with selenium-webdriver 4.0.0-alpha.5 and the latest geckodriver and chromedriver). I've set up one driver for Firefox and another one for Chrome like this: const chrome = require('selenium-webdriver/chrome'); const firefox = require('selenium-webdriver/firefox'); const webdriver = require('selenium-webdriver'); const { Builder, By, Capabilities, until } = webdriver; let loggingPref = new webdriver.logging.Preferences

Selenium: Trying to get Firefox console logs results in “WebDriverError: HTTP method not allowed”

喜夏-厌秋 提交于 2021-02-07 09:54:39
问题 I'm trying to capture console errors in my selenium tests (node environment with selenium-webdriver 4.0.0-alpha.5 and the latest geckodriver and chromedriver). I've set up one driver for Firefox and another one for Chrome like this: const chrome = require('selenium-webdriver/chrome'); const firefox = require('selenium-webdriver/firefox'); const webdriver = require('selenium-webdriver'); const { Builder, By, Capabilities, until } = webdriver; let loggingPref = new webdriver.logging.Preferences

Selenium: Trying to get Firefox console logs results in “WebDriverError: HTTP method not allowed”

主宰稳场 提交于 2021-02-07 09:54:03
问题 I'm trying to capture console errors in my selenium tests (node environment with selenium-webdriver 4.0.0-alpha.5 and the latest geckodriver and chromedriver). I've set up one driver for Firefox and another one for Chrome like this: const chrome = require('selenium-webdriver/chrome'); const firefox = require('selenium-webdriver/firefox'); const webdriver = require('selenium-webdriver'); const { Builder, By, Capabilities, until } = webdriver; let loggingPref = new webdriver.logging.Preferences