public int CountBytes(string text) { using (IWebDriver driver = _webDriverFactory.GetDriver()) { driver.Navigate().GoToUrl(_siteURL); SetConfigurations(driver, text); return(GetOutputtedCount(driver)); } }
public string GenerateLoremIpsum(bool startWithLoremIpsum, int quantityOfParagraphs, ParagraphSize paragraphSize) { using (IWebDriver driver = _webDriverFactory.GetDriver()) { driver.Navigate().GoToUrl(_siteURL); SetConfigurations(driver, startWithLoremIpsum, quantityOfParagraphs, paragraphSize); return(GetOutputtedLorem(driver)); } }