Skip to content

Commit

Permalink
#2550 fixup for PR #2567: clear DevTools listeners from previous tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asolntsev committed Feb 2, 2024
1 parent 72ba3ee commit 21c216c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 7.1.0 (under construction)
* #2550 Implement downloading files via CDP or BiDi (#2567) - thanks to Sergey Brit!
* #2612 don't set page load timeout in mobile tests (#2628)
* #2617 User can safely add the same proxy filter many times (#2630)
* #2624 fix duplicate authentication (#2626)
* mask BasicAuth password in logs (#2626)
* #2609 detect case when an event collect is reused by different threads
* bump TestNG from 7.8.0 to 7.9.0

## 7.0.6 (released 27.01.2024)
* bump Appium java client from 9.0.0 to 9.1.0 (#2623)

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {

allprojects {
group = 'com.codeborne'
version = '7.0.6'
version = '7.1.0-SNAPSHOT'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ private void prepareDownloadWithCdp(Driver driver, DevTools devTools,
Optional.of(driver.browserDownloadsFolder().toString()),
Optional.of(true)));

devTools.clearListeners();

devTools.addListener(Browser.downloadWillBegin(), handler -> {
fileName.set(handler.getSuggestedFilename());
});
Expand Down

0 comments on commit 21c216c

Please sign in to comment.