コード例 #1
0
        /// <summary>
        /// Initiate logon to Gaiaonline by selecting header tab.
        /// </summary>
        /// <returns>login form for chaining</returns>
        public static LoginForm Logon()
        {
            ElementHelpers.ClickFirstElementByCssSelector(".header-login-tab-login");

            CurrentLoginForm = new LoginForm();

            return(CurrentLoginForm);
        }
コード例 #2
0
        /// <summary>
        /// Logout of Gaiaonline.
        /// </summary>
        public static void Logout()
        {
            ElementHelpers.HoverOverElementByCssSelector(".user-dropdown-arrow");

            ElementHelpers.ClickFirstElementByCssSelector(".user-dropdown-menu ul li:nth-child(3) a");
        }
コード例 #3
0
        /// <summary>
        /// Click the submit button by css selector.
        /// </summary>
        protected override void OnSubmit()
        {
            string selector = HeaderLoginInputSelector + "submit";

            ElementHelpers.ClickFirstElementByCssSelector(selector);
        }