<commit_before>import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
from webdriver_manager.chrome import ChromeDriverManager

@pytest.fixture(scope="session")
def chromedriver():
    try:
        options = Options()
        options.headless = True
        options.add_argument('--no-sandbox')
        options.add_argument('--disable-dev-shm-usage')
        options.add_argument("--disable-gpu");

        driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)

        url = 'http://localhost:9000'
        driver.get(url + "/gettingstarted")

        WebDriverWait(driver, 30).until(expected_conditions.title_contains('Sign in'))

        #Login to Graylog
        uid_field = driver.find_element_by_name("username")
        uid_field.clear()
        uid_field.send_keys("admin")
        password_field = driver.find_element_by_name("password")
        password_field.clear()
        password_field.send_keys("<PASSWORD>")
        password_field.send_keys(Keys.RETURN)

        WebDriverWait(driver, 30).until(expected_conditions.title_contains('Getting started'))

        #Run tests
        yield driver<commit_msg>Ensure UI test can locate browser.<commit_after>import pytest
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
import time
from webdriver_manager.chrome import ChromeDriverManager

@pytest.fixture(scope="session")
def chromedriver():
    try:
        options = Options()
        options.headless = True
        options.add_argument('--no-sandbox')
        options.add_argument('--disable-dev-shm-usage')
        options.add_argument("--disable-gpu")
        options.add_argument('allow-elevated-browser')
        options.binary_location = "/usr/bin/google-chrome"

        driver = webdriver.Chrome(ChromeDriverManager().install(), options=options)

        url = 'http://localhost:9000'
        driver.get(url + "/gettingstarted")

        WebDriverWait(driver, 30).until(expected_conditions.title_contains('Sign in'))

        #Login to Graylog
        uid_field = driver.find_element_by_name("username")
        uid_field.clear()
        uid_field.send_keys("admin")
        password_field = driver.find_element_by_name("password")
        password_field.clear()
        password_field.send_keys("<PASSWORD>")
        password_field.send_keys(Keys.RETURN)

        WebDriverWait(driver, 30).until(expected_conditions.title_contains('Getting started'))

        #Run tests
        yield driver
{'fraction_non_alphanumeric': 0.10406447091800981, 'fraction_numerical': 0.005606166783461808, 'mean_word_length': 3.627228525121556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4985371', 'n_tokens_mistral': 818, 'n_tokens_neox': 770, 'n_words': 143}