Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

Permission detect

Post Reply
dilfich
Posts: 330
Joined: Thu Nov 30, 2017 1:17 am

Permission detect

Post by dilfich »

Hi!
Is it possible to change permissions?

https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html

How to do it correctly?

Code: Select all

  TempDict.SetString('name', 'camera');
  TempParams.SetDictionary('permission', TempDict);

  TempList.SetString('granted');
  TempParams.SetValue('setting', TempList);

  Chrom.ExecuteDevToolsMethod(0, 'Browser.setPermission', TempParams);
Or maybe something else like that?

Code: Select all

driver.executeCdpCommand("Browser.grantPermissions", Map.of("permissions", asList("audioCapture")));
How are there not enough examples of creating structures, nested parameters are the most incomprehensible. :(
Post Reply