Complete the code to create a new EdgeOptions object.
EdgeOptions options = new [1]();The EdgeOptions class is used to configure Microsoft Edge browser settings in Selenium.
Complete the code to add the argument to start Edge in headless mode.
options.addArguments([1]);The "--headless" argument runs Edge without opening a visible window.
Fix the error in setting the binary path for Edge browser.
options.setBinary([1]);The setBinary method expects a String path, not a File or Path object.
Fill both blanks to set EdgeOptions to accept insecure certificates and disable extensions.
options.setAcceptInsecureCerts([1]); options.addArguments([2]);
Setting setAcceptInsecureCerts(true) allows insecure SSL certificates.
Adding "--disable-extensions" disables browser extensions.
Fill all three blanks to create EdgeOptions with headless mode, set window size, and disable GPU.
options.addArguments([1]); options.addArguments([2]); options.addArguments([3]);
These arguments configure Edge to run headless, set the window size, and disable GPU usage for better compatibility.