![]() ![]() Step 1) AdBlocker extension must be installed on Chrome browser before using Chrome Options class Below are the steps to access AdBlocker extension on the Chrome browser using Desired Capabilities class. This property to used to set the browser versionĪdblocker extension of the Chrome browser can be handled using ChromeDriver Options and Desired Capabilities class. This property is used to set the browser name for a web driver instance This property is used to set the operating system platform used to access the web site This property tells the browser to accept SSL Certificates by default disable-infobars: Prevents Chrome from displaying the notification ‘Chrome is being controlled by automated software.make-default-browser: Makes Chrome default browser.disable-popup-blocking: Disables pop-ups displayed on Chrome browser.disable-extensions: Disables existing extensions on Chrome browser.headless: Opens Chrome in headless mode.incognito: Opens Chrome in incognito mode.start-maximized: Opens Chrome in maximize mode.ChromeOptions options = new ChromeOptions()ĬhromeDriver driver = new ChromeDriver(options) īelow are the list of available and most commonly used arguments for ChromeOptions class We need to pass an instance of ChromeOptions class to the web driver initialization. ![]() It helps you perform various operations like opening Chrome in maximized mode, disable existing extensions, disable pop-ups, etc.īelow example shows a way to open Chrome browser in maximized mode using ChromeOptions class. The Chrome options class is generally used in conjunction with Desired Capabilities for customizing Chrome driver sessions. The Chromeoptions Class is a concept in Selenium WebDriver for manipulating various properties of the Chrome driver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |