Ejemplo n.º 1
0
        public void Open(string docName)
        {
            var path = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory,
                                                     @"..\..\Resources\" + docName));

            DriverManager.GetWebDriver().Navigate().GoToUrl("file:///" + path);
            SelectFragment.SetOption("Sandbox");

            DataGridComponent partnerRegistrationPage = new DataGridComponent(SearchElementByCss("tbody"));

            _context.UserExternalCode = partnerRegistrationPage.FindElement("#clientID").GetAttribute("value");

            partnerRegistrationPage
            .ClearText("#partnerSecretKey")
            .SendText("#partnerSecretKey", "WQ7kQvMGp5+9KT6BaGBL")
            .ClearText("#partnerId")
            .SendText("#partnerId", "58")
            .ClickOnElement("input[type=submit]");
            InitPage();
        }
Ejemplo n.º 2
0
 public void ThenSetSelectOptionTo(string option)
 {
     SelectFragment.SetOption(option);
 }