Example #1
0
 public CheckValueGrammar(GestureConfig config)
     : base(config)
 {
     _cell = new Cell(config.CellName, config.CellType){
         IsResult = true
     };
 }
Example #2
0
 public CheckValueGrammar(GestureConfig config) : base(config)
 {
     _cell = new Cell(config.CellName, config.CellType)
     {
         IsResult = true
     };
 }
Example #3
0
 public ClickGrammar(ScreenFixture fixture, GestureConfig config)
     : base(fixture, config)
 {
 }
Example #4
0
 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);
        }
Example #6
0
 public SimpleElementGesture(ScreenFixture fixture, GestureConfig config)
 {
     _fixture = fixture;
     _config  = config;
 }
Example #7
0
 public EnterValueGrammar(ScreenFixture fixture, GestureConfig def) : base(fixture, def)
 {
 }
Example #8
0
 public EnterValueGrammar(GestureConfig def)
     : base(def)
 {
     _cell = new Cell(def.CellName, def.CellType);
 }
Example #9
0
 public ClickGrammar(GestureConfig config)
     : base(config)
 {
 }
Example #10
0
 public CheckValueGrammar(ScreenFixture fixture, GestureConfig config)
     : base(fixture, config)
 {
 }
Example #11
0
 public CheckValueGrammar(ScreenFixture fixture, GestureConfig config) : base(fixture, config)
 {
 }
Example #12
0
 public EnterValueGrammar(GestureConfig def) : base(def)
 {
     _cell = new Cell(def.CellName, def.CellType);
 }
Example #13
0
 public EnterValueGrammar(ScreenFixture fixture, GestureConfig def)
     : base(fixture, def)
 {
 }
Example #14
0
        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(ScreenFixture fixture, GestureConfig config)
 {
     _fixture = fixture;
     _config = config;
 }
 public SimpleElementGesture(GestureConfig config) : base(config.Template)
 {
     _config = config;
 }
Example #17
0
 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);
        }
Example #19
0
 public ClickGrammar(GestureConfig config) : base(config)
 {
 }
Example #20
0
        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);
        }