Visitar URL original
馃悶: Selenium BiDi attachments land in the tearDown fixture, not the test result 路 Issue #1322 路 allure-framework/allure-java 路 GitHub
Skip to content

馃悶: Selenium BiDi attachments land in the tearDown fixture, not the test result聽#1322

Description

@a-zorina

What happened?

When a WebDriver decorated with AllureWebDriverBiDi is closed via driver.quit() inside a JUnit 5 @AfterEach, the resulting "WebDriver BiDi network"/"WebDriver BiDi log" attachments are written to the tearDown fixture container instead of the test result itself.

What Allure Integration are you using?

allure-selenium-bidi

What version of Allure Integration you are using?

3.0-SNAPSHOT, commit 22cb102

What version of Allure Report you are using?

3.14.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. removed
    pr:bugSomething isn't working
    on Jul 10, 2026
  2. added theissue type on Jul 10, 2026
  3. baev commented on Jul 10, 2026

    @baev
    Member

    @a-zorina, why do you think this is a bug? Logs are flushed when the session closes. If driver.quit() is called in AfterEach, the attachments will also be added to AfterEach.

  4. a-zorina commented on Jul 10, 2026

    @a-zorina
    Author

    driver.quit() in AfterEach is a standard tear down pattern in selenium docs: https://www.selenium.dev/documentation/webdriver/getting_started/using_selenium/, so I'm assuming that's how these tests are usually written.
    And the resulting placement of the attachments in the actual report looks awkward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions