Ejemplo n.º 1
0
 public void Setup()
 {
     Initialize();
     Driver.Navigate().GoToUrl("http://demoqa.com/");
     _demoQA = new DemoQA(Driver);
     _demoQA.ScrollTo(_demoQA.InteractionsButton).Click();
     _demoQA.ScrollTo(_demoQA.Dropable).Click();
 }
Ejemplo n.º 2
0
        public void ElementYIsSame_When_DragAndDropOnlyXDiagonally()
        {
            _demoQA.ScrollTo(_demoQA.Draggable).Click();
            _demoQA.AxisRestrictedTab.Click();
            int yBefore = _demoQA.OnlyXBox.Location.Y;

            _demoQA.DraggableDragAndDrop(_demoQA.OnlyXBox);
            int yAfter = _demoQA.OnlyXBox.Location.Y;

            _demoQA.ElementYIsSame(yBefore, yAfter);
        }