-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cannot add browser args #4341
Comments
Electron args are an object, but you can still add command line args to the |
@wojciechsabaj This is mentioned in the docs
But, I will update this to be a comment included in the example. Edit: changed here: cypress-io/cypress-documentation@fadf8bb |
Hi,
when I was trying to solve the problem with X-Frame-Options being sent in response from the server, I found a nice solution here:
#1763 (comment)
It also contained the link to the browser extension that should be able to strip off the offending header. However, when I added this code to my plugins/index.js, I encountered the following error showing up in main Cypress window:
"arg.push is not a function".
I printed out the content of my "args" and it definitely is an object ("push" method is available ONLY for arrays, not for objects):
I tried to replicate the behaviour of "push" by manually setting the correct "path" but no success.
I do not know if something has changed during the development process but please review the examples on your page:
https://docs.cypress.io/api/plugins/browser-launch-api.html#Modify-args-based-on-browser
The text was updated successfully, but these errors were encountered: