示例#1
0
 public SNWebPage()
     : base()
 {
     DriverCommands = new SNDriverCommands();
     Utilities      = new SNGlobalUtilities();
     Header         = new SNHeader();
 }
示例#2
0
 /// <summary>
 /// the constructor
 /// </summary>
 /// <param name="gridCssSelector">the grid CSS Selector</param>
 /// <param name="webElement">IWebElement</param>
 /// <param name="index">the index</param>
 /// <param name="columns">the list of columns</param>
 /// <param name="overrideControlPrefix">override control prefix</param>
 public SNGridRow(string gridCssSelector, IWebElement webElement, int index, GridRowType type, List <SNGridColumn> columns, string overrideControlPrefix = null)
     : base()
 {
     DriverCommands = new SNDriverCommands();
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     this.gridCssSelector = gridCssSelector;
     Element = webElement;
     Index   = index;
     Type    = type;
     Columns = columns;
     Report.Write("GridRow Index: " + Index + ", Type: " + Type);
     InitElements();
 }
 /// <summary>
 /// the constructor
 /// </summary>
 /// <param name="driver">IWebDriver</param>
 /// <param name="gridCssSelector">the grid CSS Selector</param>
 /// <param name="overrideControlPrefix">override control prefix</param>
 public SNGrid(string gridCssSelector, bool initializeGrid = false, string overrideControlPrefix = null)
     : base()
 {
     DriverCommands = new SNDriverCommands();
     if (overrideControlPrefix != null)
     {
         this.ControlPrefix = overrideControlPrefix;
     }
     InitializeGrid       = initializeGrid;
     this.gridCssSelector = gridCssSelector;
     ByGridIdentifier     = By.CssSelector(gridCssSelector);
     ByColumns            = By.CssSelector(gridCssSelector + " tr.DataGridHeader > th");
     ByHeaderRow          = By.CssSelector(gridCssSelector + " tr.DataGridHeader");
     ByRows            = By.CssSelector(gridCssSelector + " tr.DataGridAltRow, " + gridCssSelector + " tr.DataGridRow");
     ByPaginationRows  = By.CssSelector(gridCssSelector + " tr.DataGridPager");
     ByPaginationLinks = By.CssSelector(gridCssSelector + " tr:first-of-type table tr > td");
     InitElements();
 }
 public SNComponent()
     : base()
 {
     DriverCommands = new SNDriverCommands();
     Utilities      = new SNGlobalUtilities();
 }
示例#5
0
 public SNFooter()
     : base()
 {
     DriverCommands = new SNDriverCommands();
     Utilities      = new SNGlobalUtilities();
 }
示例#6
0
 public SNHeader() : base()
 {
     DriverCommands = new SNDriverCommands();
     Utilities      = new SNGlobalUtilities();
     InitElements();
 }
 public SNDetail() : base()
 {
     DriverCommands = new SNDriverCommands();
     Utilities      = new SNGlobalUtilities();
 }