public DnPokerTable(RanorexDriver driver) : base(driver) { rootLocator = getAppRefByName("PokerTableDlg"); string tempLocator = ""; //get last table int i = 0; while (i++ < 30) { try { Host.Local.FindSingle <Form>(String.Format("{0}[{1}]", rootLocator, i)); } catch (Exception e) { tempLocator = String.Format("{0}[{1}]", rootLocator, i); break; } } Form table = Host.Local.FindSingle <Form>(tempLocator); String title = table.GetAttributeValue <string>("title"); rootLocator = String.Format("{0}[@title={1}]", rootLocator, title); }
public DnPokerLobbyBeginners(RanorexDriver driver) : base(driver) { rootLocator = getAppRefByName("MainWindowWin"); tabs = new LobbyTabs(this); }
public DnPokerLobby(RanorexDriver driver) : base(driver) { rootLocator = getAppRefByName("MainWindowWin"); }
protected RanorexPageObject(RanorexDriver driver) : base(driver) { this.rootLocator = rootLocator; minimizeLocator = getLocator("//button[@accessiblename='Minimize']"); }
protected RanorexComponent(IRanorexUIElement parent) { this.parent = parent; driver = parent.getDriver(); }