Reputation: 41
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.
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
Upvotes: 1
Views: 3724
Reputation: 41
@Matteo That didn't work and I could still see the Sidebar.
caps = { options: { prefs: { show_hub_apps_tower: false } } }
I am working on Watir with Ruby on Edge v114
Upvotes: 0
Reputation: 1
I'll also add that another possibility would be to disable it with prefs.
Java :
Map<String, Object> lPrefs = new HashMap<>();
// Disable Hub Apps Tower
lPrefs.put("browser.show_hub_apps_tower", false);
edgeOptions.setExperimentalOption("prefs", lPrefs);
I find it pretty easy to do like that as I also edit a bunch of other features putting them in my HashMap.
You can find all available preferences using edge://prefs-internals/. Tinkering with this can be very powerful as you can basically find anything that you would need.
Upvotes: 0
Reputation: 41
var options = new EdgeOptions();
options.AddArgument("--disable-features=msHubApps");
DESIRED_CAPABILITIES = {
edge: {
browser_opts: {args: %w( --disable-features=msHubApps),}
}
}
Resource - https://github.com/MicrosoftEdge/EdgeWebDriver/issues/61
Upvotes: 2
Reputation: 12971
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.
Upvotes: 1