public Page ChooseSection(RulesEnum rule) { //find link among presented in RulesEnum IWebElement contacts = driver .FindElements(By.TagName(AviaRulesPageSelectors.ContactsSelector)) .Where(el => el.Text == SectionName.Get(rule)) .First(); contacts.Click(); SECTION = $"#{rule}"; return(this); }
protected override void Execute(CodeActivityContext context) { var source = Source.Get(context); var destination = Destination.Get(context); var name = SectionName.Get(context); if (!string.IsNullOrWhiteSpace(name) && !destination.HasSection(name)) { var section = new ConfigSection(); destination[name] = section; section.Merge(source, Override); return; } destination.Merge(source, Override); }