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; } }
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(); } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } }
private void cbScreenShot_Checked(object sender, RoutedEventArgs e) { if (cbScreenShot.IsChecked == true) { ScreenShotManager.addScreenShotToRightMenu(); } else { ScreenShotManager.removeScreenShotToRightMenu(); } }
private void Awake() { if (Instance == null) { Instance = this; DontDestroyOnLoad(gameObject); } else { Destroy(gameObject); return; } }
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()); } }
public virtual void TearDown() { ScreenShotManager.MakeScreenOnTestFail(); TestFramework.WebDriver.Stop(); }
private void Start() { instance = this; }