-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selenium Error When Raven is Initialized #495
Comments
+1 Facing the same issue when running on Firefox using Selenium |
Is there any possibility of either of you putting together a repository with a reproducible example? Questions I'd have:
|
Error seems to happen during @srshah19 If you have something that you could share, I would appreciate it. |
Unfortunately I will not be able to share the repo. But I can try and explain what is happening: Our app is a Django Project.
Selenium tests only fail when using Firefox. Here is the exception: |
After some more digging, it seems that the problem is caused by line 249:
A console log right before this line shows that
@benvinegar However, I am not certain that this is the right long-term fix. Please advise. |
Also for completeness, I should mention that the caller function that is triggering this exception is line 683:
in the function |
We should probably do what you've done, which is try/catch the I notice that the folks at Bugsnag put try/catch around their entire So I'm in favor of going ahead with that solution. I can put a fix together w/ a test shortly and cut it w/ the same release. Or if you're so inclined, I'll accept a PR too :) |
@benvinegar I don't quite understand the reasoning and logic behind wrapping |
@bluecollarcoder – to be clear, I prefer the solution of putting the try/catch in |
In that case, I will work on it later this week. Just so I understand the fix, what is the correct behavior if If the correct behavior is to wrap it, then we would still need to mark a function as wrapped without causing the permission exception. Maybe instead of attaching a flag to the function itself, we would need to use a collection that holds the wrapped functions. Let me know your thoughts. |
@benvinegar Ha. Just saw that you posted a blog post about function wrapping. Very timely, thanks. |
What's the status with this issue? Will it be fixed in an upcoming release? |
@dkiriakakis I'll get a fix together today and we'll cut a release ASAP. |
Thanks @benvinegar ! |
Fix Raven.js throwing exception when run in Selenium (fixes #495)
Running an older version of Selenium and running into It appears to be this error that is cropping up. I'm running latest 2.1.1, importing via commonjs (webpack) and calling install. EDIT: This was meant for people googling. This was caused by an older firefox, and after upgrading firefox and selenium this no longer happens. |
Accessing the `__raven_wrapper__` property in Firefox 48 when run under Selenium results in the following error: Uncaught WebDriverError: Permission denied to access property "__raven_wrapper__" (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10 milliseconds Build info: version: '3.0.0-beta2', revision: '2aa21c1', time: '2016-08-02 15:03:28 -0700' System info: host: '199-7-164-50', ip: '199.7.164.50', os.name: 'windows', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_91' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{browserstack.localIdentifier=travis-3840.1, raisesAccessibilityExceptions=false, browserstack.tunnelIdentifier=travis-3840.1, browserstack.selenium.jar.version=3.0.0-beta2, appBuildId=20160726073904, platform=XP, specificationLevel=0, acceptSslCerts=false, browserstack.key=GpeJcf7DBqk3pHnB3PkZ, browser=firefox, browserVersion=48.0, platformVersion=6.2, acceptSslCert=false, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, browser_version=48.0, platformName=Windows_NT, 64bit=true, browserstack.debug=false, rotatable=false, browserstack.ie.noFlash=false, browserstack.user=dhcole, version=48.0, proxy={}, command_id=1, firefox_binary=c:\Program Files (x86)\firefox 48.0\firefox.exe, browserstack.video=true, orig_os=win8, takesElementScreenshot=true, device=desktop, proxy_type=privoxy}] Session ID: 8ad81e9d-f345-48a9-b1fe-def338169a10 at WebDriverError (node_modules/selenium-webdriver/lib/error.js:27:10) at Object.checkLegacyResponse (node_modules/selenium-webdriver/lib/error.js:639:15) at parseHttpResponse (node_modules/selenium-webdriver/http/index.js:538:13) at node_modules/selenium-webdriver/http/index.js:472:11 at ManagedPromise.invokeCallback_ (node_modules/selenium-webdriver/lib/promise.js:1379:14) at TaskQueue.execute_ (node_modules/selenium-webdriver/lib/promise.js:2913:14) at TaskQueue.executeNext_ (node_modules/selenium-webdriver/lib/promise.js:2896:21) at node_modules/selenium-webdriver/lib/promise.js:2820:25 at node_modules/selenium-webdriver/lib/promise.js:639:7 From: Task: WebDriver.executeScript() at WebDriver.schedule (node_modules/selenium-webdriver/lib/webdriver.js:377:17) at WebDriver.executeScript (node_modules/selenium-webdriver/lib/webdriver.js:526:16) at WebDriver.driver.load (test/suites/selenium/_init.js:180:14) at test/suites/selenium/_init.js:100:14 at initDriver (test/suites/selenium/_init.js:192:5) at test/suites/selenium/_init.js:147:9 at node_modules/browserstack-local/lib/Local.js:46:11 at ChildProcess.exithandler (child_process.js:204:7) at maybeClose (internal/child_process.js:829:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) By wrapping the access, we can avoid the error. Relates to getsentry#495
Accessing the `__raven_wrapper__` property in Firefox 48 when run under Selenium results in the following error: Uncaught WebDriverError: Permission denied to access property "__raven_wrapper__" (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10 milliseconds Build info: version: '3.0.0-beta2', revision: '2aa21c1', time: '2016-08-02 15:03:28 -0700' System info: host: '199-7-164-50', ip: '199.7.164.50', os.name: 'windows', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_91' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{browserstack.localIdentifier=travis-3840.1, raisesAccessibilityExceptions=false, browserstack.tunnelIdentifier=travis-3840.1, browserstack.selenium.jar.version=3.0.0-beta2, appBuildId=20160726073904, platform=XP, specificationLevel=0, acceptSslCerts=false, browserstack.key=GpeJcf7DBqk3pHnB3PkZ, browser=firefox, browserVersion=48.0, platformVersion=6.2, acceptSslCert=false, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, browser_version=48.0, platformName=Windows_NT, 64bit=true, browserstack.debug=false, rotatable=false, browserstack.ie.noFlash=false, browserstack.user=dhcole, version=48.0, proxy={}, command_id=1, firefox_binary=c:\Program Files (x86)\firefox 48.0\firefox.exe, browserstack.video=true, orig_os=win8, takesElementScreenshot=true, device=desktop, proxy_type=privoxy}] Session ID: 8ad81e9d-f345-48a9-b1fe-def338169a10 at WebDriverError (node_modules/selenium-webdriver/lib/error.js:27:10) at Object.checkLegacyResponse (node_modules/selenium-webdriver/lib/error.js:639:15) at parseHttpResponse (node_modules/selenium-webdriver/http/index.js:538:13) at node_modules/selenium-webdriver/http/index.js:472:11 at ManagedPromise.invokeCallback_ (node_modules/selenium-webdriver/lib/promise.js:1379:14) at TaskQueue.execute_ (node_modules/selenium-webdriver/lib/promise.js:2913:14) at TaskQueue.executeNext_ (node_modules/selenium-webdriver/lib/promise.js:2896:21) at node_modules/selenium-webdriver/lib/promise.js:2820:25 at node_modules/selenium-webdriver/lib/promise.js:639:7 From: Task: WebDriver.executeScript() at WebDriver.schedule (node_modules/selenium-webdriver/lib/webdriver.js:377:17) at WebDriver.executeScript (node_modules/selenium-webdriver/lib/webdriver.js:526:16) at WebDriver.driver.load (test/suites/selenium/_init.js:180:14) at test/suites/selenium/_init.js:100:14 at initDriver (test/suites/selenium/_init.js:192:5) at test/suites/selenium/_init.js:147:9 at node_modules/browserstack-local/lib/Local.js:46:11 at ChildProcess.exithandler (child_process.js:204:7) at maybeClose (internal/child_process.js:829:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) By wrapping the access, we can avoid the error. Relates to getsentry#495
Accessing the `__raven_wrapper__` property in Firefox 48 when run under Selenium results in the following error: Uncaught WebDriverError: Permission denied to access property "__raven_wrapper__" (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 10 milliseconds Build info: version: '3.0.0-beta2', revision: '2aa21c1', time: '2016-08-02 15:03:28 -0700' System info: host: '199-7-164-50', ip: '199.7.164.50', os.name: 'windows', os.arch: 'x86', os.version: '6.2', java.version: '1.8.0_91' Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{browserstack.localIdentifier=travis-3840.1, raisesAccessibilityExceptions=false, browserstack.tunnelIdentifier=travis-3840.1, browserstack.selenium.jar.version=3.0.0-beta2, appBuildId=20160726073904, platform=XP, specificationLevel=0, acceptSslCerts=false, browserstack.key=GpeJcf7DBqk3pHnB3PkZ, browser=firefox, browserVersion=48.0, platformVersion=6.2, acceptSslCert=false, XULappId={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browserName=Firefox, takesScreenshot=true, browser_version=48.0, platformName=Windows_NT, 64bit=true, browserstack.debug=false, rotatable=false, browserstack.ie.noFlash=false, browserstack.user=dhcole, version=48.0, proxy={}, command_id=1, firefox_binary=c:\Program Files (x86)\firefox 48.0\firefox.exe, browserstack.video=true, orig_os=win8, takesElementScreenshot=true, device=desktop, proxy_type=privoxy}] Session ID: 8ad81e9d-f345-48a9-b1fe-def338169a10 at WebDriverError (node_modules/selenium-webdriver/lib/error.js:27:10) at Object.checkLegacyResponse (node_modules/selenium-webdriver/lib/error.js:639:15) at parseHttpResponse (node_modules/selenium-webdriver/http/index.js:538:13) at node_modules/selenium-webdriver/http/index.js:472:11 at ManagedPromise.invokeCallback_ (node_modules/selenium-webdriver/lib/promise.js:1379:14) at TaskQueue.execute_ (node_modules/selenium-webdriver/lib/promise.js:2913:14) at TaskQueue.executeNext_ (node_modules/selenium-webdriver/lib/promise.js:2896:21) at node_modules/selenium-webdriver/lib/promise.js:2820:25 at node_modules/selenium-webdriver/lib/promise.js:639:7 From: Task: WebDriver.executeScript() at WebDriver.schedule (node_modules/selenium-webdriver/lib/webdriver.js:377:17) at WebDriver.executeScript (node_modules/selenium-webdriver/lib/webdriver.js:526:16) at WebDriver.driver.load (test/suites/selenium/_init.js:180:14) at test/suites/selenium/_init.js:100:14 at initDriver (test/suites/selenium/_init.js:192:5) at test/suites/selenium/_init.js:147:9 at node_modules/browserstack-local/lib/Local.js:46:11 at ChildProcess.exithandler (child_process.js:204:7) at maybeClose (internal/child_process.js:829:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) By wrapping the access, we can avoid the error. Relates to getsentry#495
This just popped up for us today. Is anyone else seeing this issue? |
@Githraine Are you using the latest version of Raven? |
@Githraine you need this fix in ~2-3 places in raven: scothis@152598a |
@vladikoff using cucumber (2.4.0) |
I also have this issue with webdriver-manager and firefox 53.0.3 |
All my Selenium tests pass before I integrated Raven. Tests still pass if I load the Raven JS file but not initialize Raven. Tests fail in Firefox ONLY with:
if Raven is loaded and initialized. Here is the initialization code:
Any help with this issue will be appreciated.
The text was updated successfully, but these errors were encountered: