How To Remove "Chrome is being controlled by automated software" message In Selenium WebDriver

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • Welcome to my RUclips channel, In this video, I have explained how to Remove the "Chrome is being controlled by automated software" message In Selenium WebDriver.
    Problem statement: When we execute any Selenium Program in Chrome Browser then -
    Chrome browser gets launched and the message "Chrome is being controlled by automated software" is displayed on the top left side of the browser.
    Solution: Use the below lines of code to get rid of the message:
    // Create an object of ChromeOptions class
    ChromeOptions opt = new ChromeOptions();
    // Use the setExperimentalOption method and pass the String name as "excludeSwitches" and the object as "enable-automation"
    opt.setExperimentalOption("excludeSwitches",Arrays.asList("enable-automation"));
    // Pass the ChromeOptions object in the ChromeDriver instance
    WebDriver driver = new ChromeDriver(opt);
    Don't forget to subscribe to my channel -
    / qacubicle
    for more informative content on software testing, quality assurance, and test automation. Hit the notification bell to receive updates whenever we post new videos. If you have any questions or suggestions, feel free to leave a comment below.
    Connect with me:
    LinkedIn- / kuldeep-k. .
    Email: qacubicle@gmail.com

Комментарии • 4

  • @comvie
    @comvie Год назад +1

    Thank you sir, it works

  • @tapaskhandai
    @tapaskhandai 7 месяцев назад +1

    Thank You so much

    • @QACubicle
      @QACubicle  7 месяцев назад +1

      Thanks..!!

    • @tapaskhandai
      @tapaskhandai 7 месяцев назад

      @@QACubicle Could you please demonstrate how to handle it in case of python selenium