Пример #1
0
        public void WhenUserEnterdTheMandatoryField(string Username, string Password, string OPtionalName, string Action, string url)
        {
            user_name = Username;
            if (user_name != "")
            {
                user_name = DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss") + Username;
            }

            Duplicate_User = user_name;

            var FeedConfig = new PageCSFile.Feedconfiguration();

            PageFactory.InitElements(BrowserFactory.Driver, FeedConfig);
            FeedConfig.Feed_Configuration(user_name, Password, OPtionalName, Action, url);
        }
Пример #2
0
        public void WhenUserEnterdTheMandatoryfield(string Username, string Password, string OPtionalName, string Action, string url, int url_length)
        {
            user_name = Username;
            if (user_name != "")
            {
                user_name = DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss") + Username;
            }

            var FeedConfig = new PageCSFile.Feedconfiguration();

            PageFactory.InitElements(BrowserFactory.Driver, FeedConfig);
            string URL_255 = FeedConfig.RandomString(url_length);

            FeedConfig.Feed_Configuration(user_name, Password, OPtionalName, Action, URL_255);
        }