• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Programming Languages
    • Java Tutorials
    • Python Tutorials
    • JavaScript Tutorials
  • Automation Tools and Different Tools
    • Web Automation
      • Selenium with Java
        • Selenium Basic
        • Selenium Advance
        • Selenium Realtime
        • Framework
        • Selenium Interview
        • Selenium Videos
        • Selenium with Docker
      • Selenium with Python
      • WebdriverIO
        • Selenium Webdriver C# Tutorial
      • Cypress
      • Playwright
    • TestNG
    • Cucumber
    • Mobile Automation
      • Appium
    • API Testing
      • Postman
      • Rest Assured
      • SOAPUI
    • testRigor
    • Katalon
    • TestProject
    • Serenity BDD
    • Gradle- Build Tool
    • RPA-UiPath
    • Protractor
    • Windows Automation
  • Automation For Manual Testers
  • Services
  • Online Training
  • Contact us
  • About me
  • Follow us
    • Linkedin
    • Facebook Group
    • Facebook Page
    • Instagram

Automation

Selenium WebDriver tutorial Step by Step

You are here: Home / Basic Selenium / Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium

Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium

October 31, 2023 by Mukesh Otwani Leave a Comment

Personalize your web experience

Automation can add huge ROI when your script is getting executed multiple times across different browsers and different platforms.While running Selenium script on Edge Browser you might come across a prompt like “Personalise your web experience”. Today we will discuss How To Disable Personalise your web experience Microsoft Edge Prompt In Selenium.

This prompt can create or cause some exception while running the automated test.How To Disable Personalise your web experience Microsoft Edge Prompt In Selenium

If you are completely new to Selenium then do check our post for Selenium. We have covered from basic till advance with video tutorials.

Disable Personalise your web experience
Disable Personalise your web experience

 

Solution – In order to disable such prompt , we can use guest profile while running the test which should not prompt this option

Step 1- Create object of EdgeOption class

Step 2- Add argument “–guest”

Step 3- Use above EdgeOption while invoking browser.

 

import org.openqa.selenium.WebDriver;

import org.openqa.selenium.edge.EdgeDriver;

import org.openqa.selenium.edge.EdgeOptions;

public class SeleniumEdge {

public static void main(String[] args)

{

EdgeOptions opt=new EdgeOptions();

opt.addArguments(“–guest”);

WebDriver driver=new EdgeDriver(opt);

driver.get(“http://www.google.com”);

}

}

Once you execute then you will get browser with guest profile without any prompt.

Feel free to drop an email for any issue or discussion. Email – mukeshotwani@learn-automation.com

 

Filed Under: Basic Selenium

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Free Selenium Videos

https://www.youtube.com/watch?v=w_iPCT1ETO4

Search topic

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?

Stay connected via Facebook

Stay connected via Facebook

Archives

Footer

Categories

Recent Post

  • API Testing Using Postman And RestAssured
  • Disable Personalise Your Web Experience Microsoft Edge Prompt In Selenium
  • How To Fix Error: No tests found In Playwright
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Best and easy way to Group test cases in selenium

Top Posts & Pages

  • Selenium Webdriver tutorial for beginners
  • How To Fix Eclipse Autocomplete Or Code Suggestion In Eclipse
  • Selenium Webdriver C# Tutorial
  • WHAT ARE YOUR EXPECTATIONS FROM US?