Beispiel #1
0
        public void Init()
        {
            new DataGridComponent(menu.FindElement(eWalletBlock))
            .TextIsPresence("USD")
            .TextIsPresence("$")
            .TextIsPresence("EUR")
            .TextIsPresence("€")
            .TextIsPresence("RUB")
            .TextIsPresence("₽");

            new DataGridComponent(menu.FindElement(EPACardBlock))
            .TextIsPresence("USD")
            .TextIsPresence("EUR");
        }
        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();
        }