Issue1: I am my in TestGN suite. But on and off are in . How do I stop scripts in safe mode permanently in “” Browser Issue2: In chrome browser autoit scripts are not . However If I manaully run the autoit exe it runs properly.

Issue2: In chrome browser autoit scripts are not running. However If I manaully run the autoit exe it runs properly.

Below is my autoit script:

Opt("WinSearchChildren",1)

$iSleep = 2000
_WinWaitActivate(“EyComplyUi – Google Chrome”,””)
Send(“{SHIFTDOWN}e{SHIFTUP}{SHIFTDOWN}y{SHIFTUP}{SHIFTDOWN}gax{SHIFTUP}eycdemo{TAB}{SHIFTDOWN}p{SHIFTUP}{SHIFTDOWN}2{SHIFTUP}ssw{SHIFTDOWN}1{SHIFTUP}{TAB}{ENTER}”)

Below is script:

@BeforeMethod
  public void Portal_login() throws Exception {
      System.setProperty("webdriver.chrome.driver","C://chromedriver.exe");
      driver = new ChromeDriver();
      driver.get(Portalurl);
      driver.manage().window().maximize();
      driver.manage().deleteAllCookies();
      driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
      driver.findElement(By.id("userNameInput")).sendKeys(" ssouser");
        // Enter Password
        driver.findElement(By.id("passwordInput")).sendKeys("pass");
        // Wait For Page To Load
        driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
        // Click on 'Sign In' button
        driver.findElement(By.id("submitButton")).click();  
        //Privacy notice
        //driver.findElement(By.xpath("//*[text()='I Agree']")).click();
        // Windows Authentication handling from FireFox
        //Thread.sleep(1000);
        // Wait For Page To Load
        driver.manage().timeouts().implicitlyWait(90, TimeUnit.SECONDS);
        try {
            Runtime.getRuntime().exec("C://Users//somanath.kamble//Documents//DashboardChrome.exe");
            } catch (Exception e) {
                Runtime.getRuntime().exec("C://Users//somanath.kamble//Documents//DashboardChrome.exe");

            }



  }



Source link https://sqa.stackexchange.com/questions/34694/selenium-scripts-are-running-in-firefox-safe-mode

LEAVE A REPLY

Please enter your comment!
Please enter your name here