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

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

QACubicle

9 месяцев назад

1,906 Просмотров

Welcome to my YouTube 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 -

https://www.youtube.com/c/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- https://www.linkedin.com/in/kuldeep-k...
Email: [email protected]

Тэги:

#chrome_is_being_controlled_by_automated_software #disable_infobar_in_selenium #chrome_is_being_controlled_by_automated_test_software #chrome_options #chrome_info_banner #disable_notification #chrome_options_enable_automation #selenium_webdriver #automation_testing_tutorial_for_beginners #chromeoptions_in_selenium #selenium_webdriver_tutorial #automation #chrome_is_being_controlled_by_automated_software_selenium_vba #setexperimentaloption #excludeswitches #enable-automation #chromeoptions
Ссылки и html тэги не поддерживаются


Комментарии: