Esempio n. 1
0
        /// <summary>
        /// Clicks [Project Search] on top bar
        /// </summary>


        public static void QuickNavLineItem(RemoteWebDriver driver, Iteration reporter, String lineItemId)
        {
            reporter.Add(new Act("Set Quick Navigation Line Item " + lineItemId));
            Selenide.SetText(driver, new Locator(LocatorType.ID, "quickNavInput"), Selenide.ControlType.Textbox, lineItemId);

            if (Selenide.Browser.isIPadSafari(driver))
            {
                Selenide.JS.Enter(driver, new Locator(LocatorType.ID, "quickNavInput"));
            }
            else
            {
                Selenide.Enter(driver, new Locator(LocatorType.ID, "quickNavInput"));
            }
        }