Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public DnPokerLobbyBeginners(RanorexDriver driver) : base(driver)
 {
     rootLocator = getAppRefByName("MainWindowWin");
     tabs        = new LobbyTabs(this);
 }
Esempio n. 3
0
 public DnPokerLobby(RanorexDriver driver) : base(driver)
 {
     rootLocator = getAppRefByName("MainWindowWin");
 }
Esempio n. 4
0
 protected RanorexPageObject(RanorexDriver driver) : base(driver)
 {
     this.rootLocator = rootLocator;
     minimizeLocator  = getLocator("//button[@accessiblename='Minimize']");
 }
Esempio n. 5
0
 protected RanorexComponent(IRanorexUIElement parent)
 {
     this.parent = parent;
     driver      = parent.getDriver();
 }