Selenium Scripts are running in firefox safe mode

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Selenium Scripts are running in firefox safe mode

Som K

Issue1: I am running my scripts in TestGN suite. But on and off scripts are running in safe mode. How do I stop running scripts in safe mode permanently in "Firefox" Browser

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 selenium 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");

                }



      }

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/978ec2b4-a662-40d3-9cf7-00da9383f133%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.