public void T14_StaticPageDisplay_WelcomeToZecco()
        {
            UserSignIn(UN,PW,false,0);
            browser.GoToNoWait(targetHost + "/aboutus/WelcomeToZecco.aspx");
            //browser.Div(Find.ByClass("welcome")).WaitUntilExists(10);

            SignOut so = new SignOut();
            so.UserSignOut(browser);
        }
 private void CommonProc_1()
 {
     //sign in page
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut so = new SignOut();
         so.UserSignOut(browser);
     }
     browser.Link(Find.ByClass("login-button login-signin")).Click();
 }
Пример #3
0
 public void NavigateToSignup(Browser browser)
 {
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut si = new SignOut();
         si.UserSignOut(browser);
     }
     browser.GoTo(targetHost);
     //browser.Link(Find.ById("ctl00_ctl00_uxPreContent_uxTopNavigation_uxMemberLoginStatus_uxMemberLoginView_uxMemberSignUpLink")).Click();
     browser.Link(Find.ById("uxMemberSignUpLink")).Click();
 }
Пример #4
0
        public void T04_Footer_Security()
        {
            browser.GoTo(targetHost);
            UserSignIn(UN, PW, false, 2);
            SignOut si = new SignOut();
            si.UserSignOut(browser);
            System.Threading.Thread.Sleep(10000);
            Assert.IsTrue(browser.Div(Find.ByClass("footer-content")).Text.Contains("options"));

            browser.GoTo(targetHost + "/signin.aspx");
            System.Threading.Thread.Sleep(10000);
            Assert.IsTrue(browser.Div(Find.ByClass("footer-content")).Text.Contains("options"));
        }
 public void T01_ResetPassword_PositiveEmailAddress()
 {
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut so = new SignOut();
         so.UserSignOut(browser);
     }
     browser.Link(Find.ByClass("login-button login-signin")).Click();
     browser.Link(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxResetPasswordLink")).Click();
     browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxEmailAddressOrUserNameInput")).WaitUntilExists(10);
     browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxEmailAddressOrUserNameInput")).TypeText("*****@*****.**");
     browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxSendEmail")).Click();
     Assert.IsTrue(browser.Span(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxSuccessMessage")).Text.Contains("Thanks! You should receive an email shortly with a link to reset your Zecco password."));
 }
Пример #6
0
        public void UserSignIn(String UserName, String PassWord)
        {
            // if there already have a user login, do logout first
            if (browser.Link(Find.ByClass("login-button login-signout")).Exists)
                {
                  SignOut si = new SignOut();
                  si.UserSignOut(browser);
                }

            browser.Link(Find.ByClass("login-button login-signin")).Click();
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxLoginForm_uxUserName")).Value = UserName;
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxLoginForm_uxPassword")).Value = PassWord;
            browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxLoginForm_uxSignIn")).Click();
        }
Пример #7
0
 public void GotoACHAdmin()
 {
     // if there already have a user login, do logout first
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut si = new SignOut();
         si.UserSignOut(browser);
     }
     if (browser.Link(Find.ById("ctl00_uxLoginView_uxLoginStatus")).Exists)
     {
         browser.Span(Find.ById("ctl00_uxSiteMapBreadCrumb")).Link(Find.ByText("Portal Admin")).Click();
         browser.Link(Find.ById("ctl00_uxLoginView_uxLoginStatus")).Click();
     }
     browser.GoTo(AdminUrl);
     browser.WaitForComplete();
     browser.TextField(Find.ById("ctl00_uxMainContent_uxLogin_UserName")).TypeText(UN3);
     browser.TextField(Find.ById("ctl00_uxMainContent_uxLogin_Password")).TypeText(PW3);
     browser.Button(Find.ById("ctl00_uxMainContent_uxLogin_LoginButton")).Click();
     browser.WaitForComplete();
 }
        public void T04_FieldValidation_SignInPassword()
        {
            UserSignIn(UN, PW, false, 0);
            if (browser.Link(Find.ByText("Sign Out")).Exists)
            {
                SignOut si = new SignOut();
                si.UserSignOut(browser);
                browser.GoTo(targetHost);

                System.Threading.Thread.Sleep(10000);
            }
            System.Threading.Thread.Sleep(10000);
            browser.WaitForComplete();
            StringBuilder s = new StringBuilder();
            for (int i = 0; i < 17; i++)
            {
                s.Append("a");
            }
            browser.TextField("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxPassword").TypeText(s.ToString());
            Assert.AreEqual(browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxPassword")).Text, s.ToString().Substring(0, 16));
        }
Пример #9
0
        public void NavigateToMemberProfileSettings(String UserName, String PassWord)
        {
            if (browser.Div("MainColumn").Div(Find.ByClass("float-left gutter")).Exists == true)
            {
                if (browser.Div("MainColumn").Div(Find.ByClass("float-left gutter")).Text.Contains("Settings Overview ") == false)
                {
                    if (browser.Span(Find.ByClass("loginstatus")).Link(Find.ByText("Sign Out")).Exists == true)
                    {
                        SignOut so = new SignOut();
                        so.UserSignOut(browser);
                        browser.GoTo(targetHost);
                        System.Threading.Thread.Sleep(10000);
                    }

                    UserSignIn(UserName, PassWord, false, 0);
                    browser.Link(Find.ById("uxAccountCenter")).WaitUntilExists(10);
                    browser.Link(Find.ById("uxAccountCenter")).Click();
                }
            }
            else
            {
                if (browser.Span(Find.ByClass("loginstatus")).Link(Find.ByText("Sign Out")).Exists == true)
                {
                    SignOut so = new SignOut();
                    so.UserSignOut(browser);
                    browser.GoTo(targetHost);
                    System.Threading.Thread.Sleep(10000);
                }

                UserSignIn(UN, PW, false, 0);
                browser.Link(Find.ById("uxAccountCenter")).WaitUntilExists(10);
                browser.Link(Find.ById("uxAccountCenter")).Click();
            }

            browser.Link(Find.ByText("Edit your profile")).Click();
        }
 private void FSRProc()
 {
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut si = new SignOut();
         si.UserSignOut(browser);
     }
     if (browser.Link(Find.ById("ctl00_uxLoginView_uxLoginStatus")).Exists)
     {
         browser.Span(Find.ById("ctl00_uxSiteMapBreadCrumb")).Link(Find.ByText("Portal Admin")).Click();
         browser.Link(Find.ById("ctl00_uxLoginView_uxLoginStatus")).Click();
     }
     browser.GoTo(AdminUrl);
     browser.TextField(Find.ById("ctl00_uxMainContent_uxLogin_UserName")).WaitUntilExists(10);
     browser.TextField(Find.ById("ctl00_uxMainContent_uxLogin_UserName")).TypeText(UN3);
     browser.TextField(Find.ById("ctl00_uxMainContent_uxLogin_Password")).TypeText(PW3);
     browser.Button(Find.ById("ctl00_uxMainContent_uxLogin_LoginButton")).Click();
     browser.WaitForComplete();
     browser.Link(Find.ByText("GainsKeeper-Search")).Click();
     browser.TextField(Find.ById("ctl00_uxMainContent_uxKeyword")).WaitUntilExists(10);
     browser.TextField(Find.ById("ctl00_uxMainContent_uxKeyword")).TypeText(UN2);
     browser.Button(Find.ById("ctl00_uxMainContent_uxSearch")).Click();
 }
Пример #11
0
        public void TestUserSignIn(String UserName, String PassWord, Boolean bRemember, int DefaultPage)
        {
            // if there already have a user login, do logout first
            if (browser.Link(Find.ByText("Sign Out")).Exists)
            {
                SignOut si = new SignOut();
                si.UserSignOut(browser);
                browser.GoTo(targetHost + "/signin.aspx");

                System.Threading.Thread.Sleep(5000);
            }
            //browser.Button(Find.ById("ctl00_ctl00_uxPreContent_uxTopNavigation_uxMemberLoginStatus_uxMemberLoginView_LoginStatus1")).Click();
            System.Threading.Thread.Sleep(5000);
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleControl_uxLoginForm_uxUserName")).TypeText(UserName);
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleControl_uxLoginForm_uxPassword")).TypeText(PassWord);

            //SelectList startList = browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart"));
            //if (startList.Exists)
            //{
            //    startList.Option("Account Settings").Select();
            //}

            if (bRemember)
            {
                browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleControl_uxLoginForm_uxRememberMeNextTime")).Checked = true;
            }

            //switch (DefaultPage)
            ////1--DefaultPage is Zecco Trading Center; 2--DefaultPage is Community Profile; 3--DefaultPage is Account Settings; 4--DefaultPage is Message Center
            //{
            //    case 0:
            //        break;
            //    case 1:
            //        browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Zecco Trading Center").Select();
            //        break;
            //    case 2:
            //        browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Community Profile").Select();
            //        break;
            //    case 3:
            //        browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Account Settings").Select();
            //        break;
            //    case 4:
            //        browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Message Center").Select();
            //        break;
            //}

            if ((browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Exists == true) &&
                (browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Checked == false))
            {
                browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Checked = true;
            }

            browser.Div(Find.ByClass("SignIn")).Element(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleControl_uxLoginForm_uxSignIn")).Click();

            if ((browser.Link(Find.ByText("Sign Out")).Exists) && (browser.ContainsText(UserName)))
            {
                return;
            }
            else
            {
                if (browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).Exists == true)
                {
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).TypeText(SA);
                    browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNext")).Click();
                }
            }
            //roadblock
            while (browser.Link(Find.ById("uxRemindLater")).Exists == true)
            {
                browser.Link(Find.ById("uxRemindLater")).Click();
                System.Threading.Thread.Sleep(5000);
            }
            System.Threading.Thread.Sleep(5000);
            browser.Link(Find.ByText("Community Profile")).Click();
            System.Threading.Thread.Sleep(5000);
        }
Пример #12
0
        public void TestUserSignInFromSignUp(String UserName, String PassWord, Boolean bRemember)
        {
            // if there already have a user login, do logout first
            if (browser.Link(Find.ByText("Sign Out")).Exists)
            {
                SignOut si = new SignOut();
                si.UserSignOut(browser);
            }

            browser.Link(Find.ById("uxMemberSignUpLink")).Click();
            browser.Link(Find.ById("ctl00_ctl00_uxMainContent_uxUserControlContent_uxOpenLoginForm")).Click();
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxUserControlContent_uxDefaultLoginForm_uxUserName")).TypeText(UserName);
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxUserControlContent_uxDefaultLoginForm_uxPassword")).TypeText(PassWord);

            if (bRemember)
            {
                browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxUserControlContent_uxDefaultLoginForm_uxRememberMeNextTime")).Checked = true;
            }
            browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxUserControlContent_uxDefaultLoginForm_uxSignIn")).Click();
            if ((browser.Link(Find.ByText("Sign Out")).Exists) &&
                (browser.Div(Find.ById("topNavMemberDiv")).Text.Trim().ToLower() == UserName.ToLower()))
            {
                return;
            }
            else
            {
                if (browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).Exists == true)
                {
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).TypeText(SA);
                    browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNext")).Click();
                }
            }
        }
Пример #13
0
        public void TestUserSignInForIP(String UserName, String PassWord, Boolean bRemember, int DefaultPage)
        {
            // if there already have a user login, do logout first
            if (browser.Link(Find.ByText("Sign Out")).Exists)
            {
                SignOut si = new SignOut();
                si.UserSignOut(browser);
            }
            browser.GoTo(targetHost);

            System.Threading.Thread.Sleep(5000);

            //browser.Link(Find.ByClass("login-button login-signin")).Click();
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxUserName")).TypeText(UserName);
            browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxPassword")).TypeText(PassWord);
            SelectList startList = browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart"));
            if (startList.Exists)
            {
                startList.Option("Account Settings").Select();
            }

            //if (bRemember)
            //{
            //    browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxRememberMeNextTime")).Checked = true;
            //}

            switch (DefaultPage)
            //1--DefaultPage is Zecco Trading Center; 2--DefaultPage is Community Profile; 3--DefaultPage is Account Settings; 4--DefaultPage is Message Center
            {
                case 0:
                    break;
                case 1:
                    browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Zecco Trading Center").Select();
                    break;
                case 2:
                    browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Community Profile").Select();
                    break;
                case 3:
                    browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Account Settings").Select();
                    break;
                case 4:
                    browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxStart")).Option("Message Center").Select();
                    break;

            }
            if ((browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Exists == true) &&
                (browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Checked == false))
            {
                browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxBetaAgreeToTerms")).Checked = true;
            }

            browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxSignIn")).Click();
        }
Пример #14
0
 public void T13_Check_SignOut()
 {
     UserSignIn(UN, PW, false, 0);
     SignOut so = new SignOut();
     so.UserSignOut(browser);
     if (browser.Div(Find.ById("topNavMemberDiv")).Exists == false)
     {
         Assert.IsTrue(true);
     }
     else
     {
         Assert.IsTrue(false);
     }
 }
Пример #15
0
 public void T12_Check_username_Redirect()
 {
     if (browser.Link(Find.ByText("Sign Out")).Exists)
     {
         SignOut si = new SignOut();
         si.UserSignOut(browser);
     }
     browser.GoTo(targetHost + "/accountcenter.aspx");
     if (browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxUserName")).Exists == false)
     {
         browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxUserName")).Value = UN;
         browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxPassword")).Value = PW;
         if ((browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxBetaAgreeToTerms")).Exists == true) &&
             (browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxBetaAgreeToTerms")).Checked == false))
         {
             browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxBetaAgreeToTerms")).Checked = true;
         }
         browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxLoginForm_uxSignIn")).Click();
     }
     else
     {
         TestUserSignIn(UN, PW, false, 0);
     }
     //browser.Link(Find.ById("ctl00_ctl00_uxMainContent_uxBreadcrumbTrail_uxTopLevel")).WaitUntilExists(20);
     if (browser.Url.Contains("accountcenter") == true)
     {
         Assert.IsTrue(true);
     }
     else
     {
         Assert.IsTrue(false);
     }
 }
        public void T15_Performance_NoHoldings()
        {
            //UserSignIn(UN, PW, false, 2);
            //browser.Span(Find.ById("ctl00_ctl00_uxPreContent_uxTopNavigation_uxMemberLoginStatus_uxMemberLoginView_uxLoginName")).Click();
            //System.Threading.Thread.Sleep(5000);
            //Assert.AreEqual(browser.Span(Find.ById("uxNoTradesHoldingDisplayMessage")).Text, "Sorry, this person does not have any holdings to share.");
            string username = "";
            for (int i = 3249; i < 3259; i++)
            {
                username = "******" + i.ToString("0000");

                if (browser.Link(Find.ByText("Sign Out")).Exists)
                {
                    SignOut si = new SignOut();
                    si.UserSignOut(browser);
                    browser.GoTo(targetHost);

                    System.Threading.Thread.Sleep(5000);
                }
                browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxUserName")).TypeText(username);
                browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxPassword")).TypeText("Zecco111");
                browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxRightColumn_uxDefaultLoginForm_uxSignIn")).Click();
                System.Threading.Thread.Sleep(10000);

                if ((browser.Link(Find.ByText("Sign Out")).Exists == true) &&
                    (browser.Div(Find.ById("topNavMemberDiv")).Text.Trim().ToLower() == username.ToLower()))
                {

                }
                else
                {
                    if (browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).Exists == true)
                    {
                        browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAnswer")).TypeText("Zecco");
                        browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNext")).Click();
                        System.Threading.Thread.Sleep(8000);
                    }
                }

                if (browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNASDAQSubscriberSignature")).Exists == true)
                {
                    browser.RadioButton(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNonProfessional")).Checked = true;
                    string sig = browser.Span(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNASDAQSubscriberName")).Text.Trim();
                    if (string.IsNullOrEmpty(sig) == true)
                    {
                        Console.WriteLine("{0}-Account invalid", username);
                        continue;
                    }
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNASDAQSubscriberSignature")).TypeText(sig);
                    browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxConfirmNASDAQButton")).Click();

                    browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAgreedtoSection1")).WaitUntilExists(20);
                    browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAgreedtoSection1")).Checked = true;
                    browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAgreedtoSection2")).Checked = true;
                    browser.CheckBox(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxAgreedtoSection3")).Checked = true;
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSEAddress")).TypeText("NYSEAddress" + i.ToString("0000"));
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSEEmployer")).TypeText("NYSEEmployer" + i.ToString("0000"));
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSEEmployerFunction")).TypeText("NYSEEmployerFunction" + i.ToString("0000"));
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSETitle")).TypeText("NYSETitle" + i.ToString("0000"));
                    browser.TextField(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSEEmployerAddress")).TypeText("NYSEEmployerAddress" + i.ToString("0000"));
                    browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNYSEConfirmButton")).Click();

                    browser.RadioButton(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNonProfessionalOPRA")).WaitUntilExists(20);
                    browser.RadioButton(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxNonProfessionalOPRA")).Checked = true;
                    browser.Button(Find.ById("ctl00_ctl00_uxMainContent_uxMiddleColumn_uxOPRAConfirm")).Click();

                    System.Threading.Thread.Sleep(5000);
                }

                if (browser.Url.Contains("communitydashboard") == true)
                {
                    Console.WriteLine("{0}-No account", username);
                    continue;
                }

                browser.Span(Find.ById("TradeBalance_NetCash")).WaitUntilExists(20);
                string balance = browser.Span(Find.ById("TradeBalance_NetCash")).Text.Trim();
                string stockBP = browser.Span(Find.ById("TradeBalance_StockBuyingPower")).Text.Trim();
                string optionBP = browser.Span(Find.ById("TradeBalance_OptionBuyingPower")).Text.Trim();
                browser.Image(Find.ByClass("money-hover")).Click();

                System.Threading.Thread.Sleep(5000);
                string ach = browser.SelectList(Find.ById("ctl00_ctl00_uxMainContent_uxLeftColumn_uxAccountFrom")).Exists ? "Active" : "Non-active";

                Console.WriteLine("{0}-{1}-{2}-{3}-{4}", username, balance, stockBP, optionBP, ach);
            }
        }