<commit_before>﻿using NUnit.Framework;
using OpenQA.Selenium.Environment;

namespace OpenQA.Selenium.Support.PageObjects
{
	//TODO: Move this to a standalone class when more tests rely on the server being up
	[SetUpFixture]
	public class SetUpClass
	{
		[SetUp]
		public void RunBeforeAnyTest()
		{
			EnvironmentManager.Instance.WebServer.Start();
		}

		[TearDown]
		public void RunAfterAnyTests()
		{
			EnvironmentManager.Instance.CloseCurrentDriver();
			EnvironmentManager.Instance.WebServer.Stop();
		}
	}

    [TestFixture]
    public class PageFactoryBrowserTest : DriverTestFixture
    {
        [Test]
        public void FindsRenderedElement()
        {
            driver.Url = xhtmlTestPage;
            var page = new RenderedPage();

            PageFactory.InitElements(driver, page);
<commit_msg>DanielWagnerHall: Tabs -> Spaces (no functional changes)<commit_after>﻿using NUnit.Framework;
using OpenQA.Selenium.Environment;

namespace OpenQA.Selenium.Support.PageObjects
{
    //TODO: Move this to a standalone class when more tests rely on the server being up
    [SetUpFixture]
    public class SetUpClass
    {
        [SetUp]
        public void RunBeforeAnyTest()
        {
            EnvironmentManager.Instance.WebServer.Start();
        }

        [TearDown]
        public void RunAfterAnyTests()
        {
            EnvironmentManager.Instance.CloseCurrentDriver();
            EnvironmentManager.Instance.WebServer.Stop();
        }
    }

    [TestFixture]
    public class PageFactoryBrowserTest : DriverTestFixture
    {
        [Test]
        public void FindsRenderedElement()
        {
            driver.Url = xhtmlTestPage;
            var page = new RenderedPage();

            PageFactory.InitElements(driver, page);

{'fraction_non_alphanumeric': 0.08233957978421351, 'fraction_numerical': 0.0, 'mean_word_length': 2.6861924686192467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2372286', 'n_tokens_mistral': 519, 'n_tokens_neox': 487, 'n_words': 113}