<commit_before>---
layout: default
title: Sessions
---

# Sessions

## Constructing Sessions

Before we can use our page/block objects, we need to set up a browser [*Session*](../blob/master/Bumblebee/Setup/Session.cs). To construct one, you will need to provide a driver environment, which is any class that implements the [*IDriverEnvironment*](../blob/master/Bumblebee/Setup/IDriverEnvironment.cs) interface.  You can learn more about driver environments [here](./Driver-Environments).

For the example below, we are using a built-in environment called [*InternetExplorer*](../blob/master/Bumblebee/Setup/DriverEnvironments/InternetExplorer.cs).

```csharp
var environment = new InternetExplorer();<commit_msg>Update sessions.md<commit_after>## Constructing Sessions

Before we can use our page/block objects, we need to set up a browser [*Session*](../blob/master/Bumblebee/Setup/Session.cs). To construct one, you will need to provide a driver environment, which is any class that implements the [*IDriverEnvironment*](../blob/master/Bumblebee/Setup/IDriverEnvironment.cs) interface.  You can learn more about driver environments [here](./Driver-Environments).

For the example below, we are using a built-in environment called [*InternetExplorer*](../blob/master/Bumblebee/Setup/DriverEnvironments/InternetExplorer.cs).

```csharp
var environment = new InternetExplorer();
{'fraction_non_alphanumeric': 0.11175616835994194, 'fraction_numerical': 0.0, 'mean_word_length': 5.239819004524887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7172719', 'n_tokens_mistral': 387, 'n_tokens_neox': 358, 'n_words': 131}