Пример #1
0
        private void initView()
        {
            bool isOpen = WindowsDenfenderManager.isOpen();

            if (isOpen)
            {
                startUp = 2;
            }
            else
            {
                startUp = 1;
                cbWindowsDefender.IsChecked = true;
            }
            bool isScreenToolAdded = ScreenShotManager.isAdded();

            if (isScreenToolAdded)
            {
                cbScreenShot.IsChecked = true;
            }

            if (CmdManager.isAdded() == true)
            {
                cbCmd.IsChecked = true;
            }
        }
Пример #2
0
 public void searchGoogleByText()
 {
     Console.WriteLine("Inside Test Method");
     driver.Navigate().GoToUrl("https://www.google.com");
     driver.FindElement(By.Name("q")).SendKeys("Hariharan" + Keys.Enter);
     Console.WriteLine("Finished Test Method");
     ScreenShotManager.TakeScreenshot(driver);
     Log4NetHelper.GetLogger("Hariharan").Debug("hariharan");
 }
 public override void OnInspectorGUI()
 {
     serializedObject.Update();
     serializedObject.ApplyModifiedProperties();
     if (GUILayout.Button("Make Screen Shot"))
     {
         ScreenShotManager.MakeScreenShot();
     }
 }
Пример #4
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this);
     }
 }
Пример #5
0
 private void cbScreenShot_Checked(object sender, RoutedEventArgs e)
 {
     if (cbScreenShot.IsChecked == true)
     {
         ScreenShotManager.addScreenShotToRightMenu();
     }
     else
     {
         ScreenShotManager.removeScreenShotToRightMenu();
     }
 }
Пример #6
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
Пример #7
0
 public void OpenScreenShotsFolder()
 {
     if (Application.platform == RuntimePlatform.WindowsEditor || Application.platform == RuntimePlatform.WindowsPlayer)
     {
         // Windows only (TESTED)
         System.Diagnostics.Process.Start("explorer.exe", "/root," + ScreenShotManager.GetScreenShotsFolderPath());
     }
     else if (Application.platform == RuntimePlatform.OSXEditor || Application.platform == RuntimePlatform.OSXPlayer)
     {
         // Mac only (UNTESTED)
         System.Diagnostics.Process.Start("open", ScreenShotManager.GetScreenShotsFolderPath());
     }
 }
Пример #8
0
 public virtual void TearDown()
 {
     ScreenShotManager.MakeScreenOnTestFail();
     TestFramework.WebDriver.Stop();
 }
 private void Start()
 {
     instance = this;
 }