public static void setURL(string strURL) { SiteDriver.SendKeys(ManCityObject.css_txtUrl, "CSSSelector", strURL); }
/* * * 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); }
public static void setEmailID(string strEmailID) { SiteDriver.SendKeys(ManCityObject.css_txtEmail, "CSSSelector", strEmailID); }
/* * public static void SetIntroduction() * { * string textarea = SiteDriver.FindElement(PersonalityTestPageObject.introdution, "CSSSelector").Text; * * } */ public static void SetHobbies(string strHobbies) { SiteDriver.SendKeys(PersonalityTestPageObject.hobbies, "CSSSelector", strHobbies); }
public static void setComment(string strComment) { SiteDriver.SendKeys(ManCityObject.css_txtComment, "CSSSelector", strComment); }
public static void SetContactNo(string strContactNo) { SiteDriver.SendKeys(PersonalityTestPageObject.contactNo, "CSSSelector", strContactNo); }
public static void SetIntroduction(string strIntro) { SiteDriver.SendKeys(PersonalityTestPageObject.introdution, "CSSSelector", strIntro); }
public static void SetState(string strState) { SiteDriver.SendKeys(PersonalityTestPageObject.state, "CSSSelector", strState); }
public static void SetZipCode(string strZipCode) { SiteDriver.SendKeys(PersonalityTestPageObject.zipCode, "CSSSelector", strZipCode); }
public static void SetCity(string strCity) { SiteDriver.SendKeys(PersonalityTestPageObject.city, "CSSSelector", strCity); }
public static void SetPassword(string strPassword) { SiteDriver.SendKeys(PersonalityTestPageObject.password, "CSSSelector", strPassword); }
public static void SetUserName(string strUName) { SiteDriver.SendKeys(PersonalityTestPageObject.username, "CSSSelector", strUName); }
public static void SetEmail(string strEmail) { SiteDriver.SendKeys(PersonalityTestPageObject.email, "CSSSelector", strEmail); }
//private static List<string> checkboxList = new List<string>() {"" }; public static void SetFullName(string strFullName) { SiteDriver.SendKeys(PersonalityTestPageObject.fullName, "CSSSelector", strFullName); }