system generated pop up at the top of the browser window

Step1: Log in to application
Step2: Navigate to a screen

I get the pop up (Image 1) , refer the attached file

system generated pop up at the top of the browser window

Step3: I click “Allow”
Step4: I get Image2, then I click “Allow and Remember”

Question:-  I get Image1 and Image2 when I automate. The control is waiting here. How to avoid these two images. I have created profile and using the same profile in the code.

ProfilesIni profile = new ProfilesIni();

FirefoxProfile myprofile = profile.getProfile(“idexxssprofile”);

driver = new FirefoxDriver(myprofile);

Add Comment
  • 1 Answer(s)

    You can do some thing like this , let me know if it is help full

    File file = new File("firebug-1.8.1.xpi");
    FirefoxProfile firefoxProfile = new FirefoxProfile();
    // Avoid startup screen
    firefoxProfile.setPreference("extensions.firebug.currentVersion", "1.8.1"); 
    WebDriver driver = new FirefoxDriver(firefoxProfile);
    Supporter Answered on August 9, 2015.

    Hi Bheem,

    It did not work even though I installed the above add-on

    on August 10, 2015.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.