Beispiel #1
0
        internal override void NavigateToPage(int pageNo)
        {
            page.pageNumber = pageNo;

            DomAction nextClickAction = new DomAction(DomAction.ActionType.CLICK, "");

            browser.PerformAction(page.nextPageElement, nextClickAction, PageTimeout);
        }
Beispiel #2
0
        public void PerformAction(Element element, DomAction action, int timeout)
        {
            try
            {
                string selectorValue = element.htmlSelector.selectorValue;
                string selectorType  = Convert.ToString(element.htmlSelector.selectBy);
                string actionType    = Convert.ToString(action.actionType);
                string actionSelect  = Convert.ToString(action.actionSelectyBy);
                string actionValue   = Convert.ToString(action.value);

                DomService.PerformAction(selectorValue, selectorType, actionValue, actionType, actionSelect);
            }
            catch (Exception)
            {
            }
        }