Пример #1
0
        public void BeforeTest()
        {
            string location = AppDomain.CurrentDomain.BaseDirectory;

            location = location.Substring(0, location.IndexOf("\\bin"));
            driver   = new ChromeDriver(location);
            driver.Manage().Timeouts().PageLoad = TimeSpan.FromSeconds(180);
            driver.Manage().Window.Maximize();
            driver.Navigate().GoToUrl(credentials.url2);

            HomePage    = new HomePage(driver);
            HomePageSE1 = new HomePageSE1(driver);
            BasePage    = new BasePage( );
            Assert      = new Assert(driver, _extent);

            try
            {
                _test = _extent.CreateTest(TestContext.CurrentContext.Test.Name);
            }
            catch (Exception e)
            {
                throw (e);
            }
        }
Пример #2
0
        public void VerifyAddition()
        {
            int a = 100; int b = 200;

            HomePageSE1.LaunchSeleniumWebpage().ProvideTwoNumber(a, b);
        }
Пример #3
0
 public void VerifyName()
 {
     HomePageSE1.
     LaunchSeleniumWebpage().EnterName("Test");
 }
Пример #4
0
 public void VerifySeleniumEasy_Web()
 {
     HomePageSE1.
     LaunchSeleniumWebpage();
 }
Пример #5
0
        public void VerifyFemaleRadioButton()
        {
            int a = 3;

            HomePageSE1.LaunchSeleniumWebpage().SelectInputFormsOption(a).SelectFemaleRadio();
        }
Пример #6
0
        public void VerifyCheckbox()
        {
            int a = 2;

            HomePageSE1.LaunchSeleniumWebpage().SelectInputFormsOption(a).ClickCheckbx();
        }