Firefox closes unexpectedly and appears this error - firefox

I am running the Selenium IDE with Firefox in Linux and after a while Firefox closes unexpectedly and with the following error:
[NPAPI 1421] ###!!! ABORT: Aborting on channel error.: file /build/firefox-DdKYuG/firefox-52.0.2+build1/ipc/glue/MessageChannel.cpp, line 2143
Kille
in the console. What has gone wrong?

NPAPI is related to java plugin in firefox. But all java plugin will be deactivated for every forefox verion upper to firefox 52.
That the only think I can find with the informations you provided ! what's your firefox version ?

Related

WebdriverIO: couldn't find executable for firefox browser using default runner (devtools:puppeteer)

I'm using webdriverIO for some automation testing and have recently migrated from 'selenium-standalone' service to default wdio devtools protocol.
wdio v.7.16.12
firefox v.95.0.2
From that point I can't start testing with firefox browser:
INFO #wdio/cli:launcher: Run onPrepare hook
INFO #wdio/cli:launcher: Run onWorkerStart hook
INFO #wdio/local-runner: Start worker 0-0 with arg: run,wdio.conf.js
INFO #wdio/local-runner: Run worker command: run
...
INFO devtools:puppeteer: Initiate new session using the DevTools protocol
ERROR #wdio/runner: Error: Couldn't find executable for browser
...
INFO #wdio/cli:launcher: Run onComplete hook
I've tried different combinations of options with 'wdio:devtoolsOptions' and 'moz:firefoxOptions'.
Plus checked whether could help dumpio: true, and 'moz:debuggerAddress': true options.
Also I've tried substitution browserName with product and adding binary and executablePath to capabilities.
When passing binary: 'path.to.firefox' to 'moz:firefoxOptions' options, the error message changes to:
ERROR #wdio/runner: Error: Only Nightly release channel is supported in Devtools/Puppeteer for Firefox. Refer to the following issue:
...
Any ideas how it could be fixed in webdriverIO (without installing separately puppeteer or puppeteer-firefox)?
Thanks!
Seems that I took desired for real.
wdio + devtools:puppeteer still work with Firefox Nightly only – https://github.com/webdriverio/webdriverio/discussions/7916

puppeteer-sharp Failed to launch Base

I have implemented it in my local and works well. But when I moved the changes to the window server it's giving the below error
Failed to launch Base! [0402/075840.212:ERROR:os_crypt_win.cc(70)] Failed to encrypt: The system cannot find the file specified. (0x2)\r\n[0402/075840.212:FATAL:headless_browser_main_parts.cc(103)] Check failed: OSCrypt::Init(local_state_.get()). \r\nBacktrace:\r\n\tIsSandboxedProcess [0x00007FFC31341842+705042]\r\n\tIsSandboxedProcess [0x00007FFC312C39A2+189298]\r\n\tIsSandboxedProcess [0x00007FFC312D2AF8+251080]\r\n\tIsSandboxedProcess [0x00007FFC312D39E0+254896]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B12123+12980755]\r\n\tRelaunchChromeBrowserWithNewCommandLineIfNeeded [0x00007FFC32B11E8D+12980093]\r\n\tovly_debug_event [0x00007FFC2F905929+16331561]\r\n\tovly_debug_event [0x00007FFC2FCC5B17+20264215]\r\n\tovly_debug_event [0x00007FFC2F904675+16326773]\r\n\tovly_debug_event [0x00007FFC2F9073BE+16338366]\r\n\tIsSandboxedProcess [0x00007FFC31DB7DB7+11675527]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A837+8179991]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B5AD+8183437]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125B20C+8182508]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A1BD+8178333]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC3125A53A+8179226]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294D1A+8418810]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC31294BDC+8418492]\r\n\tCrashForExceptionInNonABICompliantCodeRange [0x00007FFC312949E7+8417991]\r\n\tChromeMain [0x00007FFC2E971238+408]\r\n\tOrdinal0 [0x00007FF6E8CF26B8+9912]\r\n\tOrdinal0 [0x00007FF6E8CF1A41+6721]\r\n\tGetHandleVerifier [0x00007FF6E8E3AF42+904642]\r\n\tBaseThreadInitThunk [0x00007FFC68F113F2+34]\r\n\tRtlUserThreadStart [0x00007FFC6AB054F4+52]\r\n\r\n
Can anyone please advise what should be the fix for the above error message?
We had the same error with default browser:
Failed to launch browser! [0428/113352.960:ERROR:os_crypt_win.cc(70)] Failed to encrypt
As #hardkoded suggested, using the revision 851527 we could launch the browser. Thank you!

Ruby Cucumber: Chrome Driver failed to start

I am trying to Launch chrome browser from Ruby Cucumber framework. But i see it is throwing me an error.
I followed the solutions from stack overflow i.e., to re install chrome application but i see it apparently not working for me.
Here is the code from env.rb file.
require 'selenium-webdriver'
Before do
Selenium::WebDriver::Chrome.driver_path="E:/chromedriver.exe"
$driver=Selenium::WebDriver.for(:chrome)
end
Error is see is as follows.
E:\Eclipse\LoginMercury>cucumber
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic
on/) to get coloured output on Windows
Feature: Registration and Login to Mercury Portal
Scenario: Registrating new user in Portal # features/Login.feature:3
unknown error: chrome failed to start
(Driver info: chromedriver=2.3,platform=Windows NT 6.1 x86) (Selenium::WebDr
iver::Error::UnknownError)
./features/support/env.rb:4:in `Before'
Given Load Home page # features/step_definitions/Log
inStep.rb:1
When User need provide Username and password # features/step_definitions/Log
inStep.rb:6
Then Login to Portal # features/step_definitions/Log
inStep.rb:10
Failing Scenarios:
cucumber features/Login.feature:3 # Scenario: Registrating new user in Portal
1 scenario (1 failed)
3 steps (3 skipped)
0m1.180s
As I am using Windows 7, I've tried with older versions of chrome driver even.(V2.3). Yet i failed.
Can someone help me in moving further.
Thanks...!!!!
This is an error when using an older version of the chrome driver such as your version 23 and the latest version of chrome browser.
Upgrade and replace the driver, that your automation path is using for it, to the latest version 27 and this will fix this error.
https://sites.google.com/a/chromium.org/chromedriver/downloads
Cheers.

Unable to resolve org.openqa.selenium.WebDriverException: Specified firefox binary location does not exist or is not a real file?

We are getting "org.openqa.selenium.WebDriverException: Specified firefox binary location does not exist or is not a real file: /usr/local/bin/firefox/firefox" exception when we ran the selenium web driver code via linux
Configuration:
aws-cli/1.7.38 Python/2.7.9 Linux/3.14.48-33.39.amzn1.x86_64
Amazon ElasticBeanStalk
Already installed firefox on /usr/local/bin/firefox/firefox
when i ran firefox --version the version clearly getting displayed in the console
Mozilla Firefox 38.1.0
File pathToBinary = new File("/usr/local/bin/firefox/firefox");
FirefoxBinary ffBinary = new FirefoxBinary(pathToBinary);
fBinary.setEnvironmentProperty("DISPLAY", ":1");
FirefoxDriver driver = new FirefoxDriver(ffBinary,pro);
xvfb is already started. (Xvfb :1 -screen 0 1280x768x24)
Please kindly help me on how to resolve the issue?
This problem occurred due to selenium library and firefox version conflict issue.

Firefox 4 and 5: invalid 'in' operand this._sandBox - resource://gre/components/nsProxyAutoConfig.js

This error drives me insane:
invalid 'in' operand this._sandBox - resource://gre/components/nsProxyAutoConfig.js line:91
in firefox 4 and 5. It started to malfunction when i did the upgrade from 3.6 to 4.
I have search the internet about the error but seems to be an old one, it first occur in Firefox 2.8 and fixed in 3.x and above.
What i have done to try to fix this:
- Upgrade from 4 to 5 - no effect
- Uninstall Firefox and reinstall it - no effect
- Removing caches - no effect
- Modified the resource://gre/components/nsProxyAutoConfig.js, by unpacking it's archive omni.jar (which is actually a zip file), fix the error with a try{} catch(e){} statement - clear cache again - NO EFFECT
It seems to be there is a compiled or cached version of nsProxyAutoConfig.js because the error is refering to the same line, and there is a comment of my fix!
// Fix by EH, returning error in FF <- This is now line 91
try {
if (!("FindProxyForURL" in this._sandBox))
return null;
} catch (e) { return null; }
I need to get rid of this error because there is no fix for it and it stops debugging the scripts of any website so i cannot see the error when there is a error in the javascript. That is very anoying.
Please, does somebody have a solution to this?
Thank you!
Alright, tried a new upgrade again from 3.6 to Firefox 6, same error. #Nickolay was right, it has something to do with the proxy configuration, but, i didn't touch it!
To get rid from this message go to menu:
Extra|Options|Advanced|Network Tab and open connection settings.
Set Proxy to "No Proxy"
Error is gone.

Resources