Example #1
0
 public static void SetPageSize(this IDynamicResultSetView component, String size)
 {
     component.WaitUntilReady();
     component.TxtRowsPerPage.Value = size;
     // send tab key to complete
     component.TxtRowsPerPage.SendKeys(Keys.Tab);
 }
Example #2
0
        public static Int32 GetNumberOfRowsDisplayed(this IDynamicResultSetView component)
        {
            component.WaitUntilReady();
            var componentDiv = ((RoomComponent)component).DivComponentArea;
            var rows         = componentDiv.GetDescendants("/../../../../../table[2]//div[contains(@id, 'component') and not(contains(@id, '_paging'))]/table/tbody/tr");

            return(rows.Count() - 1);            // don't count the header row
        }