public CheckValueGrammar(GestureConfig config) : base(config) { _cell = new Cell(config.CellName, config.CellType){ IsResult = true }; }
public CheckValueGrammar(GestureConfig config) : base(config) { _cell = new Cell(config.CellName, config.CellType) { IsResult = true }; }
public ClickGrammar(ScreenFixture fixture, GestureConfig config) : base(fixture, config) { }
private EnterValueGrammar grammarForName(string name) { var def = new GestureConfig{ Template = "enter {data} for textbox", Finder = () => theDriver.FindElement(By.Name(name)), FinderDescription = "name=" + name, Description = "Enter data for blah", CellName = "data", }; return new EnterValueGrammar(def); }
public SimpleElementGesture(ScreenFixture fixture, GestureConfig config) { _fixture = fixture; _config = config; }
public EnterValueGrammar(ScreenFixture fixture, GestureConfig def) : base(fixture, def) { }
public EnterValueGrammar(GestureConfig def) : base(def) { _cell = new Cell(def.CellName, def.CellType); }
public ClickGrammar(GestureConfig config) : base(config) { }
public CheckValueGrammar(ScreenFixture fixture, GestureConfig config) : base(fixture, config) { }
private ClickGrammar grammarForId(string id) { var config = new GestureConfig{ Finder = () => theDriver.FindElement(By.Id(id)), FinderDescription = "#" + id, Template = "Clicking " + id }; return new ClickGrammar(config); }
public SimpleElementGesture(GestureConfig config) : base(config.Template) { _config = config; }
private CheckValueGrammar grammarForId(string id) { var config = new GestureConfig{ Finder = () => theDriver.FindElement(By.Id(id)), FinderDescription = "#" + id, CellName = "data" }; return new CheckValueGrammar(config); }
protected IGrammar Click(By selector = null, string id = null, string css = null, string name = null, string label = null, string template = null) { var by = selector ?? id.ById() ?? css.ByCss() ?? name.ByName(); if (by == null) throw new InvalidOperationException("Must specify either the selector, css, or name property"); label = label ?? by.ToString().Replace("By.", ""); var config = new GestureConfig{ Template = template ?? "Click " + label, Description = "Click " + label, Finder = () => SearchContext.FindElement(by), FinderDescription = by.ToString() }; return new ClickGrammar(config); }