protected void SetLastPageButtonVisibilityMode(ButtonVisibilityModes mode)
 {
     if (mode == ButtonVisibilityModes.AlwaysVisible)
     {
         elements.GetLastPageButtonVisibilityComboBox().SelectItemByName("AlwaysVisibleLastPageButtonVisibilityItem");
     }
     else if (mode == ButtonVisibilityModes.HiddenOnEdge)
     {
         elements.GetLastPageButtonVisibilityComboBox().SelectItemByName("HiddenOnEdgeLastPageButtonVisibilityItem");
     }
     else if (mode == ButtonVisibilityModes.None)
     {
         elements.GetLastPageButtonVisibilityComboBox().SelectItemByName("NoneLastPageButtonVisibilityItem");
     }
 }