Home > Back-end >  Disable the edge sidebar using Capabilities and EdgeOptions
Disable the edge sidebar using Capabilities and EdgeOptions

Time:12-16

All I want to know how I can disable edge sidebar using Edge capability. so i can use it in automation. I am aware about two different ways to it mentioned below.

  1. Using .send_keys Shift Ctrl /
  2. From registry Editor Open Registry Editor by typing regedit in the Run prompt and pressing the Enter key. Navigate to the following path: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Edge Right-click on the right section, and choose to create a DWORD with the name as HubsSidebarEnabled Set the value as 0x00000000 to disable it.

But i want to do it using Capabilities and EdgeOptions..

Attaching image of sidebar in edge

Please mention if any solution on this...

Edge version - Version 107.0.1418.62 (Official build) (64-bit) OS - win10

CodePudding user response:

I searched a lot including some official documents: Capabilities and EdgeOptions, Browser Options, Capabilities, but didn't find such Capabilities/EdgeOptions.

I think we can't disable Edge sidebar using Edge capability for now. I suggest that you can provide feedback to Edge WebDriver team to help improve the product. Thanks for your understading.

CodePudding user response:

**EdgeOptions, Capabilities**

**Solution on C#**

var options = new EdgeOptions();
options.AddArgument("--disable-features=msHubApps");

**Solution on Ruby**

DESIRED_CAPABILITIES = {

  edge:    { headless:     headless_bool,
             browser_opts: { args:    %w( --disable-features=msHubApps),
   
}
}
}
  • Related