public void ClickOnCreateRequestButton()
 {
     try
     {
         ElementAccessors.DoClick(this.driver, CreateRequestButton);
     }
     catch (Exception)
     { throw; }
 }
Пример #2
0
 public void ClickOnMakeARequestButton()
 {
     try
     {
         ElementAccessors.DoClick(this.driver, MakeANewRequest);
         ElementAccessors.Wait(2);
     }
     catch (Exception)
     { throw; }
 }
        public void ClickOnOrganization(int elementIndex)
        {
            Random random = new Random();
            //int randomOrgIndx = random.Next(1, elementIndex);
            int randomOrgIndx = elementIndex;
            int idx           = 1;

            foreach (IWebElement webElement in OrgDropdownElements)
            {
                if (idx == randomOrgIndx)
                {
                    ElementAccessors.DoClick(this.driver, webElement);
                }
                idx++;
            }
        }
Пример #4
0
 public void LogIn(string userName, string password)
 {
     try
     {
         if (AnotherUserLink.Displayed)
         {
             ElementAccessors.DoClick(this.driver, AnotherUserLink);
         }
     }
     catch (Exception)
     {  }
     finally
     {
         UserNameText.SendKeys(userName);
         PasswordText.SendKeys(password);
         ElementAccessors.Wait(4);
         ElementAccessors.DoClick(this.driver, SignInButton);
         ElementAccessors.Wait(4);
     }
 }