Comments (8)
The CDP events are processed concurrently by different threads, i think this will destory the order.
Other areas rely on this, e.g. the NetworkInterceptor
:
One thread will wait here for another thread to complete the future:
https://github.com/SeleniumHQ/selenium/blob/trunk/java/src/org/openqa/selenium/devtools/idealized/Network.java#L242
And this is the line where the other thread does complete the future:
https://github.com/SeleniumHQ/selenium/blob/trunk/java/src/org/openqa/selenium/devtools/idealized/Network.java#L226
from selenium.
@pujagani this is a very special case, so i would empower the listener to handle this, e.g. like in the PR i will raise in the next minutes.
from selenium.
@zixinyin, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
from selenium.
Thank you for the details. Have you checked the logs to ensure that the events are returned in order from CDP itself? Can you please share the debug logs here. Thank you!
from selenium.
Makes sense. Thank you @joerg1985! So what should be done regarding this issue?
from selenium.
Thank you for the PR! It looks good to me.
from selenium.
@zixinyin Starting with the next release it is possible to register a two argument listener, to sort the data:
TreeMap<Long, String> chunks = new TreeMap<>();
devTools.addListener(HeapProfiler.addHeapSnapshotChunk(), chunks::put);
devTools.send(HeapProfiler.takeHeapSnapshot(Optional.of(false), Optional.of(false), Optional.of(false), Optional.of(false)));
try (FileWriter fileWriter = new FileWriter("dump.json")) {
for (String chunk : chunks.values()) {
fileWriter.write(chunk);
}
}
from selenium.
This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.
from selenium.
Related Issues (20)
- [🐛 Bug]: ExpectedCondition::elementToBeClickable does not consider CSS `pointer-events: none` HOT 12
- [🐛 Bug]: Minitest::UnexpectedError: Selenium::WebDriver::Error::NoSuchWindowError: no such window HOT 9
- [🐛 Bug]: why the docker image selenium/standalone-firefox supports proxy,but chrome doesn't? HOT 1
- [🐛 Bug]: After webdriver.close and quit(), reinstantiating ChromeDriver throws SessionNotCreatedException(JAVA) HOT 2
- [🐛 Bug]: BiDi events are not fired in order HOT 4
- [🐛 Bug]: Unable to handle window management popup while opening a new window HOT 1
- [🐛 Bug]: Selenium unable to connect to Chrome 128 when not directly installed HOT 10
- [🐛 Bug]: Selenium BIDI network interception facing an issue with the "network.provideResponse" method HOT 1
- [🚀 Feature]: turn off animation or wait for finish animation HOT 2
- [🐛 Bug]: Timeout set to 16 minutes, but always fails with timeout after 9 minutes HOT 9
- [🐛 Bug]: Cannot connect Nodes to Selenium Hub using Https protocol; HOT 3
- [🐛 Bug]: Testing a chrome problem using chromedriver HOT 2
- [🐛 Bug]: No more UnhandledAlertException with Firefox 129 and problem with BiDi handling of confirmation dialog with Chrome HOT 1
- [🚀 Feature]: Switch to remote driver using an environment variable HOT 5
- [🚀 Feature]: Use self-managed browsers in Docker containers
- [🐛 Bug]: Error after updating to Chrome 128 HOT 7
- [🐛 Bug]: Race condition in ruby library for capybara system tests HOT 3
- [🐛 Bug]: Selenium edge driver cannot go to extension page using codes HOT 2
- [🐛 Bug]: eservice HOT 2
- [🐛 Bug]: "--headlessmode=new" with Chromedriver 128 in container results in SessionNotCreatedException HOT 12
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 selenium.