public void Startup() { FirstName = "FirstName_Test"; LastName = "LastName_Test"; PhoneNumber = 1112223333; url = "https://checkin.universalplant.com/"; Selenium = new SeleniumFunctions(); Selenium.SetupDrivers(); }
public bool Evaluate(IWebDriver driver) { if (driver.HasElement(SeleniumFunctions.Selectors.GetXPathSeleniumSelector(SeleniumSelectorItems.Dialog_ErrorDialog))) { var error = SeleniumFunctions.GetErrorDialogMessage(driver); throw new TestExecutionException(Constants.ErrorCodes.BUSINESS_PROCESS_ERROR_WHEN_LOADING, error); } else { return(true); } }