public BRBaseUITest()
        {
            if (!BrowserStarted)
            {
                XPOBrowser.AddUserProfilePreference("download.default_directory", BRGlobalVars.DOWNLOAD_DIR);

                if (BRGlobalVars.DEVICE_NAME == "NONE")
                {
                    XPOBrowser.StartChrome(BRGlobalVars.DRIVE_PATH);
                }
                else
                {
                    XPOBrowser.StartChrome(BRGlobalVars.DRIVE_PATH, BRGlobalVars.DEVICE_NAME);
                }
                //XPOBrowser.StartChrome(BRGlobalVars.DRIVE_PATH);
                XPOBrowser.GoToUrl(BRGlobalVars.SERVER_ADDRESS);
                if (Blogin)
                {
                    BRBasePage login = new BRBasePage();
                    login.LoginAs(BRGlobalVars.DEFAULT_USER, BRGlobalVars.DEFAULT_PASS);
                }
                BrowserStarted = true;
            }
        }
Пример #2
0
 public void Dispose()
 {
     //GlobalVars.SESSION.DeleteDoc();
     TestingComplete();
     XPOBrowser.Close();
 }