---
title: Selenide reference
description: Reference documentation for Allure Selenide integration | AllureSelenide listener configuration | LogType enum values
---

# Allure Selenide reference

These are the classes and methods you can use to integrate your Selenide tests with Allure.

## AllureSelenide

`io.qameta.allure.selenide.AllureSelenide`

A Selenide `LogEventListener` that records Selenide actions as Allure steps and captures screenshots, page source, and browser logs on failure. Register it with Selenide's listener system via `SelenideLogger.addListener()`.

Selenide steps are nested under any enclosing `Allure.step()` calls. The reverse also holds: `Allure.step()` calls made while a Selenide event is in progress appear as children of that Selenide step.

All configuration methods return `this` for method chaining.

### AllureSelenide()

```java
new AllureSelenide()
```

Creates an instance with default configuration: screenshots enabled, page source enabled, Selenide steps included, no browser log types enabled.

### AllureSelenide(AllureLifecycle)

```java
new AllureSelenide(AllureLifecycle lifecycle)
```

Creates an instance using the supplied `AllureLifecycle`. This is intended for framework authors and integration testing scenarios where you need to write to a specific lifecycle instance rather than the global default. Most tests should use `new AllureSelenide()` instead.

### screenshots

```java
AllureSelenide screenshots(boolean saveScreenshots)
```

Whether to capture and attach a screenshot to the failing step when a Selenide step fails. Defaults to `true`. See [screenshots](/docs/selenide-configuration/#screenshots).

```java
new AllureSelenide().screenshots(false)
```

### savePageSource

```java
AllureSelenide savePageSource(boolean savePageHtml)
```

Whether to capture and attach the current page HTML to the failing step when a Selenide step fails. Defaults to `true`. See [savePageSource](/docs/selenide-configuration/#savepagesource).

```java
new AllureSelenide().savePageSource(false)
```

### includeSelenideSteps

```java
AllureSelenide includeSelenideSteps(boolean includeSelenideSteps)
```

Whether to record Selenide's built-in element interaction events as Allure steps. Defaults to `true`. See [includeSelenideSteps](/docs/selenide-configuration/#includeselenidesteps).

```java
new AllureSelenide().includeSelenideSteps(false)
```

### enableLogs

```java
AllureSelenide enableLogs(LogType logType, Level logLevel)
```

Enable capture of a Selenium WebDriver log type at the specified level. When a Selenide step fails, logs of this type are retrieved and attached to the failing step as `Logs from: <type>` (for example, `Logs from: browser`). No log types are enabled by default. See [enableLogs](/docs/selenide-configuration/#enablelogs).

```java
new AllureSelenide().enableLogs(LogType.BROWSER, Level.SEVERE)
```

### disableLogs

```java
AllureSelenide disableLogs(LogType logType)
```

Remove a previously enabled log type so it is no longer captured on failure. Has no effect if the log type was not enabled. See [disableLogs](/docs/selenide-configuration/#disablelogs).

```java
new AllureSelenide().disableLogs(LogType.BROWSER)
```

---

## LogType

`io.qameta.allure.selenide.LogType`

An enum wrapping Selenium's `org.openqa.selenium.logging.LogType` constants. Used with `AllureSelenide.enableLogs()` and `AllureSelenide.disableLogs()`.

| Value         | Selenium log type | Description                   |
| ------------- | ----------------- | ----------------------------- |
| `BROWSER`     | `browser`         | Browser console output        |
| `CLIENT`      | `client`          | WebDriver client library logs |
| `DRIVER`      | `driver`          | WebDriver implementation logs |
| `PERFORMANCE` | `performance`     | Performance timing logs       |
| `PROFILER`    | `profiler`        | Profiler logs                 |
| `SERVER`      | `server`          | Remote WebDriver server logs  |

Browser support for individual log types varies. Check your browser's WebDriver documentation for what is available.
