Пример #1
0
 public static void setURL(string strURL)
 {
     SiteDriver.SendKeys(ManCityObject.css_txtUrl, "CSSSelector", strURL);
 }
Пример #2
0
        /*
         *
         * private static bool _IsOrdered(IList<IWebElement> list, IList<string> comparer)
         * {
         *  if (list.Count > 1) {
         *      for (int i = 1; i < list.Count;i++)
         *      {
         *          if (list[i].Text != comparer[i].ToString())
         *          { return false; } } }
         *  return true;
         * }
         * private static bool _IsOrdered(IList<string> list, IList<string> comparer)
         * {
         *  if (list.Count > 1)
         *  {
         *      for (int i = 1; i < list.Count; i++)
         *      {
         *          if (list[i].ToString() != comparer[i].ToString())
         *          { Console.WriteLine(list[i].ToString() + "<>" + comparer[i].ToString() );
         *              return false; }
         *      }
         *  }
         *  return true;
         * }*/
        /*
         *      public static bool Tooltip(IList<IWebElement> list, IList<string> comparer)
         *      {
         *
         *
         *          // List<IWebElement> listElements1 = SiteDriver.FindElement(ManCity.elementList1, "CSSSelector").ToList();
         *          if (list.Count > 1) {
         *              for (int i = 1; i < list.Count; i++) {
         *                  hoverClickAndHold(list[i].Text).Perform();
         *                  hover.MoveToElement(list[i].Text).Perform();// Perform mouse hover action using 'clickAndHold' method
         *                //  String ToolTipText = googleLogo.getAttribute("title"); // Get the value of Tooltip by getAttribute command
         *                 // Assert.assertEquals(listElements1, "Google");
         *                   } }
         *  }*/

        public static void setAuthor(string strAuthor)
        {
            SiteDriver.SendKeys(ManCityObject.css_txtAuthor, "CSSSelector", strAuthor);
        }
Пример #3
0
 public static void setEmailID(string strEmailID)
 {
     SiteDriver.SendKeys(ManCityObject.css_txtEmail, "CSSSelector", strEmailID);
 }
Пример #4
0
 /*
  * public static void SetIntroduction()
  * {
  *  string textarea = SiteDriver.FindElement(PersonalityTestPageObject.introdution, "CSSSelector").Text;
  *
  * }
  */
 public static void SetHobbies(string strHobbies)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.hobbies, "CSSSelector", strHobbies);
 }
Пример #5
0
 public static void setComment(string strComment)
 {
     SiteDriver.SendKeys(ManCityObject.css_txtComment, "CSSSelector", strComment);
 }
Пример #6
0
 public static void SetContactNo(string strContactNo)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.contactNo, "CSSSelector", strContactNo);
 }
Пример #7
0
 public static void SetIntroduction(string strIntro)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.introdution, "CSSSelector", strIntro);
 }
Пример #8
0
 public static void SetState(string strState)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.state, "CSSSelector", strState);
 }
Пример #9
0
 public static void SetZipCode(string strZipCode)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.zipCode, "CSSSelector", strZipCode);
 }
Пример #10
0
 public static void SetCity(string strCity)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.city, "CSSSelector", strCity);
 }
Пример #11
0
 public static void SetPassword(string strPassword)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.password, "CSSSelector", strPassword);
 }
Пример #12
0
 public static void SetUserName(string strUName)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.username, "CSSSelector", strUName);
 }
Пример #13
0
 public static void SetEmail(string strEmail)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.email, "CSSSelector", strEmail);
 }
Пример #14
0
 //private static List<string> checkboxList = new List<string>() {"" };
 public static void SetFullName(string strFullName)
 {
     SiteDriver.SendKeys(PersonalityTestPageObject.fullName, "CSSSelector", strFullName);
 }