예제 #1
0
        public override void Act()
        {
            var element = driverScope.Now();

            // In Firefox, scrolling to an element in firefox is broken.
            // Bug: https://github.com/mozilla/geckodriver/issues/901
            if (driverScope.Browser == Browser.Firefox)
            {
                Driver.ExecuteScript("window.scrollTo(0, document.body.scrollHeight);", driverScope);
            }
            Driver.Hover(element);
        }
예제 #2
0
        public void Stale_window_closed()
        {
            Driver.Click(Driver.FindLink("Open pop up window", Root));

            var popUpScope = new DriverScope(new SessionConfiguration(), new WindowFinder(Driver, "Pop Up Window", Root), Driver, null, null, null);

            var popUpWindow = popUpScope.Now();
            popUpWindow.Stale(new Options()).should_be_false();

            Driver.Click(Driver.FindButton("close", popUpScope));

            popUpWindow.Stale(new Options()).should_be_true();
        }
예제 #3
0
        public void Stale_window_closed()
        {
            Driver.Click(Link("Open pop up window"));

            var popUpScope = new DriverScope(DefaultSessionConfiguration, new WindowFinder(Driver, "Pop Up Window", Root, DefaultOptions), Driver, null, null, null, DisambiguationStrategy );

            var popUpWindow = popUpScope.Now();
            popUpWindow.Stale(new Options()).should_be_false();

            Driver.Click(Button("close", popUpScope, DefaultOptions));

            popUpWindow.Stale(new Options()).should_be_true();
        }
예제 #4
0
        public void Stale_window_closed()
        {
            Driver.Click(Driver.FindLink("Open pop up window", Root));

            var popUpScope = new DriverScope(new SessionConfiguration(), new WindowFinder(Driver, "Pop Up Window", Root), Driver, null, null, null);

            var popUpWindow = popUpScope.Now();

            popUpWindow.Stale(new Options()).should_be_false();

            Driver.Click(Driver.FindButton("close", popUpScope));

            popUpWindow.Stale(new Options()).should_be_true();
        }
예제 #5
0
        public void Stale_window_closed()
        {
            Driver.Click(Link("Open pop up window"));

            var popUpScope = new DriverScope(DefaultSessionConfiguration, new WindowFinder(Driver, "Pop Up Window", Root, DefaultOptions), Driver, null, null, null, DisambiguationStrategy);

            var popUpWindow = popUpScope.Now();

            popUpWindow.Stale(new Options()).should_be_false();

            Driver.Click(Button("close", popUpScope, DefaultOptions));

            popUpWindow.Stale(new Options()).should_be_true();
        }
예제 #6
0
파일: Click.cs 프로젝트: gondar/coypu
        public override void Act()
        {
            var element = driverScope.Now();

            Driver.Click(element);
        }
예제 #7
0
        public override void Act()
        {
            var element = driverScope.Now();

            Driver.SendKeys(element, keys);
        }
예제 #8
0
        public override void Act()
        {
            var element = _driverScope.Now();

            Driver.Hover(element);
        }