コード例 #1
0
        public String CheckForCreditUpdate()
        {
            //repeat clicking on the dashboard button
            int    clickCount         = 0;
            String TotalCreditsString = "";

            do
            {
                //click between the tabs to be
                if ((clickCount % 2) == 0)
                {
                    DashboardTab.Click();
                    Thread.Sleep(5000);
                    //get the value from the credit summary for the total number of credits
                    TotalCreditsString = TotalCreditsValueLbl.Text;
                }
                else
                {
                    JavascriptUtils.Click(Browser, CPDActivitiesTab);
                    Thread.Sleep(5000);
                }
                Thread.Sleep(10000);
                clickCount++;
            } while (clickCount < 25 && TotalCreditsString.Equals("0"));

            return(TotalCreditsString);
        }
コード例 #2
0
 //A method to verify that a given tenant is added for a given property
 internal void VerifyPropertyTenant(int TestDataSetNumber)
 {
     //Navigate into the tenants page
     DashboardTab.Click();
     MyTenantsLink.Click();
 }