public static DynamicGrid DeleteRecord_ByRowIndex(IWebDriver iFrameDriver, string dynamicGridName, GenericFormPage parentFormReference) { throw new NotImplementedException(); return(new DynamicGrid(iFrameDriver, dynamicGridName, parentFormReference)); }
public DynamicGrid(IWebDriver iFrameDriver, string dynamicGridName, GenericFormPage parentFormReference) { this.IFrameDriver = iFrameDriver; this.DynamicGridName = dynamicGridName; this.ParentFormReference = parentFormReference; }
public static DynamicGrid AddRecord(IWebDriver iFrameDriver, string dynamicGridName, GenericFormPage parentFormReference) { //Get div tab with property dynamicgridreference="TableDummy" //var css = $"div[dynamicgridreference='{dynamicGridName}'] [class='RadGrid']"; var css = $"div[id $= '_{dynamicGridName}_id']"; var ele_DynamicGridRef = iFrameDriver.FindElement(By.CssSelector(css)); var ele_tableOFButtons = ele_DynamicGridRef.FindElement(By.XPath("following-sibling::table")); //("following-sibling::table[@class='some-class']") var btnAdd = ele_tableOFButtons.FindElement(By.XPath("//input[@type='submit'][@value='Add']")); btnAdd.Click(); //must wait till dialog box opens //when popup is visible //class="ui-dialog" return(new DynamicGrid(iFrameDriver, dynamicGridName, parentFormReference)); }