public void Test006_MR_MC_Verification() { UI.NavigateTo(driver, "www.calculator.net"); UI.WaitForPageToLoad(driver); var obj = new CalculatorPageObject(driver); obj.VerifyOnLandingPage(); // verifies that text matches the expected text on the landing page obj.VerifyMRMC(); }
public void Test004_Division() { UI.NavigateTo(driver, "www.calculator.net"); UI.WaitForPageToLoad(driver); var obj = new CalculatorPageObject(driver); obj.VerifyOnLandingPage(); // verifies that text matches the expected text on the landing page for (int i = 0; i < 5; i++) { var random = new Random(); obj.VerifyDivision(random.Next(0, 99999999), random.Next(0, 99999999)); obj.ClearEntries(); } }