public ConnectCommunityFormHelper() { this.FirstName = StringInputControl <ConnectCommunityFormHelper> .CreateByXPath(xPath : "/html/body/form/div[5]/div/div/table/tbody/tr[2]/td[2]/div/div[3]/div/div/div[1]/table/tbody/tr[1]/td[2]/input", formHelper : this); this.LastName = StringInputControl <ConnectCommunityFormHelper> .CreateByXPath(xPath : "/html/body/form/div[5]/div/div/table/tbody/tr[2]/td[2]/div/div[3]/div/div/div[1]/table/tbody/tr[2]/td[2]/input", formHelper : this); this.PrimaryEmail = StringInputControl <ConnectCommunityFormHelper> .CreateByXPath(xPath : "/html/body/form/div[5]/div/div/table/tbody/tr[2]/td[2]/div/div[3]/div/div/div[1]/table/tbody/tr[3]/td[2]/input", formHelper : this); this.ConnectAndApply = ButtonControl <ConnectCommunityFormHelper> .CreateById(id : "formCtrl_cmd0", formHelper : this); }
private StringInputControl CreateConfigInput(string key) { StringInputControl control; if (key.Length > 8) { control = new StringInputControl(key.Substring(0, 8) + "..."); } else { control = new StringInputControl(key); } control.Input(Configuration.Global.GetValue <object>(key).ToString()); return(control); }
public SearchJobFormHelper() { ExperienceLevel = ComboInputControl <ExperienceLevelEnum, SearchJobFormHelper> .CreateById(formHelper : this, id : "Experience-Level"); JobCategory = ComboInputControl <JobCategoryEnum, SearchJobFormHelper> .CreateById(formHelper : this, id : "Job-Category"); JobCountry = ComboInputControl <JobCountryEnum, SearchJobFormHelper> .CreateById(formHelper : this, id : "Job-Country"); KeyWordSearch = StringInputControl <SearchJobFormHelper> .CreateById(formHelper : this, id : "keyword-search"); SearchButton = ButtonControl <SearchJobFormHelper> .CreateById(formHelper : this, id : "btnSearch"); JobResults = GridControl <JobResult, SearchJobFormHelper> .CreateByXPath(xPath : "/html/body/div[1]/main/div[2]/table", formHelper : this); NoJobsMessage = LabelControl <SearchJobFormHelper> .CreateByXPath(xPath : "/html/body/div[1]/main/p", formHelper : this); }