How can I run my scripts in IE mode in Edge?

How can I run my scripts in IE mode in Edge?

Hi Toby-steed,

You can do that with the following capabilities:

InternetExplorerOptions ieOptions = new InternetExplorerOptions();
    ieOptions.setCapability("platform","Windows 11");
    ieOptions.attachToEdgeChrome();
    ieOptions.ignoreZoomSettings();
    WebDriver driver = new RemoteWebDriver(new URL("http://{username}:{accesskey}@hub.lambdatest.com/wd/hub"),ieOptions);