<commit_before>Aloe steps for Web Testing with Selenium
----------------------------------------

A set of [Gherkin][gherkin] steps for use with [Aloe][aloe] to test Web
applications using Selenium.

Based on [lettuce_webdriver](lettuce_webdriver) which, in turn, is inspired by
[cucmber_watir](cucumber_watir).

Setting Up Aloe Webdriver
=========================

In your ``terrain.py`` file, add an include statement to register the
additional step definitions provided by Aloe Webdriver:

```python
import aloe_webdriver.webdriver
```

And a step to create the desired Selenium browser:

```python
from aloe import before, world
from selenium import webdriver

@before.all
def setup_browser():
    world.browser = webdriver.Firefox()
```

Usage
=====

Aloe features are written in the standard Gherkin language, for example:

```gherkin
Scenario: Filling out the signup form
    Given I go to "http://foo.com/signup"
    When I fill in "Name" with "<NAME>"
    And I fill in "Email" with "<EMAIL>"
    And I fill in "City" with "San Jose"
    And I fill in "State" with "CA"
    And I uncheck "Send me spam!"
    And I select "Male" from "Gender"
    And I press "Sign up"
    Then I should see "Thank you for signing up!"
```

Included Matchers
=================

The following Aloe steps are included in this package and can be used with
Given/When/Then/And as desired.

### URLs

```gherkin
    I visit "http://google.com/"<commit_msg>Fix README header levels<commit_after>Aloe steps for Web Testing with Selenium
========================================

A set of [Gherkin][gherkin] steps for use with [Aloe][aloe] to test Web
applications using Selenium.

Based on [lettuce_webdriver](lettuce_webdriver) which, in turn, is inspired by
[cucmber_watir](cucumber_watir).

Setting Up Aloe Webdriver
-------------------------

In your ``terrain.py`` file, add an include statement to register the
additional step definitions provided by Aloe Webdriver:

```python
import aloe_webdriver.webdriver
```

And a step to create the desired Selenium browser:

```python
from aloe import before, world
from selenium import webdriver

@before.all
def setup_browser():
    world.browser = webdriver.Firefox()
```

Usage
-----

Aloe features are written in the standard Gherkin language, for example:

```gherkin
Scenario: Filling out the signup form
    Given I go to "http://foo.com/signup"
    When I fill in "Name" with "<NAME>"
    And I fill in "Email" with "<EMAIL>"
    And I fill in "City" with "San Jose"
    And I fill in "State" with "CA"
    And I uncheck "Send me spam!"
    And I select "Male" from "Gender"
    And I press "Sign up"
    Then I should see "Thank you for signing up!"
```

Included Matchers
-----------------

The following Aloe steps are included in this package and can be used with
Given/When/Then/And as desired.

### URLs

```gherkin
    I visit "http://google.com/"
{'fraction_non_alphanumeric': 0.14300518134715026, 'fraction_numerical': 0.0, 'mean_word_length': 3.589540412044374, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6730197', 'n_tokens_mistral': 899, 'n_tokens_neox': 849, 'n_words': 370}