Title: AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation · Issue #1439 · allure-framework/allure-java · GitHub
Open Graph Title: AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation · Issue #1439 · allure-framework/allure-java
X Title: AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation · Issue #1439 · allure-framework/allure-java
Description: What problem should this solve? Currently, when AllureSelenide takes a screenshot after an assertion failure, it uses WebDriverRunner.getWebDriver() to fetch the underlying Selenium WebDriver and take a screenshot. This means that plugin...
Open Graph Description: What problem should this solve? Currently, when AllureSelenide takes a screenshot after an assertion failure, it uses WebDriverRunner.getWebDriver() to fetch the underlying Selenium WebDriver and t...
X Description: What problem should this solve? Currently, when AllureSelenide takes a screenshot after an assertion failure, it uses WebDriverRunner.getWebDriver() to fetch the underlying Selenium WebDriver and t...
Opengraph URL: https://github.com/allure-framework/allure-java/issues/1439
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation","articleBody":"### What problem should this solve?\n\nCurrently, when AllureSelenide takes a screenshot after an assertion failure, it uses `WebDriverRunner.getWebDriver()` to fetch the underlying Selenium WebDriver and take a screenshot. This means that plugin libraries like `com.codeborne:selenide-full-screenshot` which change the Photographer don't apply to screenshots added to Allure.\n\n### What would you like to happen?\n\n`io.qameta.allure.selenide.AllureSelenide.getScreenshotBytes()` should use `Selenide.screenshot(OutputType.BYTES)` instead of the current implementation: `((TakesScreenshot) WebDriverRunner.getWebDriver()).getScreenshotAs(OutputType.BYTES)`, so that Selenide plugins like `selenide-full-screenshot` apply correctly and consistently across a test suite and reports.\n\n### Alternatives considered\n\nWe currently workaround this by using the following custom `AllureSelenide` subclass, which demonstrates how the `Selenide.screenshot()` method can effectively replace the direct WebDriver approach:\n\n```java\npublic final class AllureSelenideFullScreenshot extends AllureSelenide {\n\n public AllureSelenideFullScreenshot() {\n super.screenshots(false); // disable parent class screenshot behavior; full-page screenshot is taken instead\n }\n\n @Override\n public void afterEvent(final @NonNull LogEvent event) {\n if (event.getStatus().equals(LogEvent.EventStatus.FAIL)) {\n byte[] screenshot = Selenide.screenshot(OutputType.BYTES);\n if (screenshot != null) {\n Allure.attachment(\"Screenshot\", \"image/png\", new ByteArrayInputStream(screenshot), AttachmentOptions.empty());\n }\n }\n super.afterEvent(event);\n }\n}\n```\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/USSQA","@type":"Person","name":"USSQA"},"datePublished":"2026-09-16T18:35:06Z","url":"https://github.com/allure-framework/allure-java/issues/1439"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7f3631ac-b1c4-828a-5b52-37cefd7f92a5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D1C:33449F:C8173:110311:6AFD4AA6 |
| html-safe-nonce | 26dd016893c19b79cd7df96914e322e3c0c85719a1e7a26c4061c7a08358c8ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDFDOjMzNDQ5RjpDODE3MzoxMTAzMTE6NkFGRDRBQTYiLCJ2aXNpdG9yX2lkIjoiNjU3NTcwMzc4MjU5NzEyNjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f7c40cf29ba882ea2283559e2c7cc0f3c66cda6c2f574445b7127da0b10392a9 |
| hovercard-subject-tag | issue:5478510171 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/allure-framework/allure-java/1439/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4788ff3b641274b12ec1d02c6c03be137e53b7ebae2a5a39699e746b57d604d4/allure-framework/allure-java/issues/1439 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4788ff3b641274b12ec1d02c6c03be137e53b7ebae2a5a39699e746b57d604d4/allure-framework/allure-java/issues/1439 |
| og:image:alt | What problem should this solve? Currently, when AllureSelenide takes a screenshot after an assertion failure, it uses WebDriverRunner.getWebDriver() to fetch the underlying Selenium WebDriver and t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | USSQA |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/allure-framework/allure-java git https://github.com/allure-framework/allure-java.git |
| octolytics-dimension-user_id | 5879127 |
| octolytics-dimension-user_login | allure-framework |
| octolytics-dimension-repository_id | 80822758 |
| octolytics-dimension-repository_nwo | allure-framework/allure-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 80822758 |
| octolytics-dimension-repository_network_root_nwo | allure-framework/allure-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width