Comments (16)
One further note: the specs that have these CORB problems pass with Cuprite, so I don't think this is an issue with our app or Chrome.
from apparition.
Any chance of a reproducible test case/example?
from apparition.
Yeah, I'm sorry this isn't more specific. I'm trying to build a small enough application to produce the problem.
from apparition.
Something along the framework of https://gist.github.com/twalpole/6711ad9aedf4449d5edb01890726e81b (Update to use apparition rather than selenium) is the simplest, although it may be too simple for your situation
from apparition.
Still working on a streamlined test case app, but adding
browser_options: {
"disable-web-security" => nil,
},
to my Apparition options makes the tests work successfully (but obviously that's not a great solution).
from apparition.
+1... I've found using page.refresh
after loading a page that will fire async JS will prevent the Provisional headers
problem.. Obviously that solution doesn't scale. I'll give the disable-web-security
a shot.
from apparition.
I haven't been able to get a small app together yet, but every time I've used a binding to halt the test and have reloaded the page once these issues resolve themselves for the rest of that example.
from apparition.
Any update on a reproducible test case for this?
from apparition.
I tried adapting the script you provided but I can't reproduce the issue in it. I tried injecting all the headers from our report into the output to see if I could get a jQuery.get
call to return the issue (so setting the same Cache-Control, etc) without success.
from apparition.
Update: I can't reproduce this by pointing the test script you suggested at our production app at a page that fails in test. I'm looking into whether this somehow has anything to do with requests that are on a non-standard HTTP port number in hopes that will be reproducible in a publicly-sharable case.
from apparition.
Something is different in newer versions of Chrome, and this problem solved itself even on older versions of our app from the time of the initial issue report. Thanks for your advice about things to try and sorry for the noise!
from apparition.
I was wrong, it's just intermittent. Holding off on reopening until I can generate this in a publicly-sharable app.
from apparition.
An update here: this appears to also be a problem in Cuprite, but Cuprite has dealt with it by setting disable-web-security
out of the box: rubycdp/cuprite#71
This makes me think this issue might be related to CDP and not specific to these drivers.
from apparition.
Hmmm -- disabling web security doesn't really seem like a good idea
from apparition.
Agreed. I just wanted to add that here since earlier in the issue I had said it wasn't a problem with Cuprite (thinking it was a unique issue in Apparition).
from apparition.
I experienced the same issue. Don't know if it can help the investigation, but putting a before { Capybara.current_session.driver.headers = {} }
in the spec (absolutely before any other Capybara statement) was enough to make it green.
from apparition.
Related Issues (20)
- [feature request] Support more structured logging from the browser HOT 2
- Screenshots occasionally have a blank white rectangle at the top HOT 1
- Does not submit empty form parameters HOT 1
- Chrome Version 85 fails to load resources HOT 14
- Unable to get all cookies HOT 1
- Using `.option_select` causes test to never finish HOT 2
- Window management not working /window handles not returned when headless=false HOT 1
- `attach_file` not working with remote browser HOT 1
- Hangs with no output HOT 1
- Capybara::Apparition::CDPError Invalid parameters HOT 1
- Node#click is flaky? HOT 2
- page.evaluate_script doesn't wait for page to be ready?
- apparition doesn't play nice with byebug HOT 1
- Unexpected inner loop exception: unknown keyword: :type: unknown keyword: :type HOT 2
- Request: A new version bump that includes PR #79 HOT 5
- DOMException: Failed to execute 'querySelectorAll' on 'Element': The provided selector is empty.
- Can't connect to remote Chrome by name
- Bad URI Exception for WebSocket while running tests
- Can't read clipboard HOT 1
- Is this gem still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apparition.