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