playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[feature] add new chromium permission "WindowManagement"

Open RajeshKumarMahto opened this issue 2 years ago • 8 comments

Hi Team,

In my organization, we use multimonitors for our application by giving "window management" permission manually. I want to automate the things by giving same permissions via playwright but as of now playwright does not have that option listed in "GrantPermission" method. Its kind of blocker for us. Pls incorporate that permission.

RajeshKumarMahto avatar Sep 20 '23 08:09 RajeshKumarMahto

@RajeshKumarMahto I've never heard of "window management" permission - is this some kind of chrome or web permission?

aslushnikov avatar Sep 20 '23 14:09 aslushnikov

It's chrome permission just like other permissions.

RajeshKumarMahto avatar Sep 20 '23 14:09 RajeshKumarMahto

window management

RajeshKumarMahto avatar Sep 20 '23 15:09 RajeshKumarMahto

@aslushnikov Hi, any update on above requested feature.

RajeshKumarMahto avatar Nov 29 '23 05:11 RajeshKumarMahto

I'm also having the same issue with "window management". It is a showstopper for me as well.

alvingeoatgit avatar Nov 30 '23 04:11 alvingeoatgit

Try using this apparently unrelated permissions. It worked for me:

        const context = this.page.context(this.browserContextOptions);
        await context.grantPermissions(['clipboard-read', 'clipboard-write', 'geolocation']);

tmallafre avatar Feb 13 '24 08:02 tmallafre

Try using this apparently unrelated permissions. It worked for me:

        const context = this.page.context(this.browserContextOptions);
        await context.grantPermissions(['clipboard-read', 'clipboard-write', 'geolocation']);

These permissions worked. I am more concerned about windows management permission.

RajeshKumarMahto avatar Mar 12 '24 07:03 RajeshKumarMahto

Hi @aslushnikov, any update on the requested feature. Or any workaround you can suggest?

RajeshKumarMahto avatar Mar 12 '24 07:03 RajeshKumarMahto

We need this permission in order to test our application as well. Why not have a safety valve to allow granting any permission. That way, the mechanism does not become stale as browser vendors add new capabilities that require new permissions?

cowboyd avatar Jun 12 '24 04:06 cowboyd

@yury-s made this change to cover java https://github.com/microsoft/playwright-java/pull/1629, can you please review?

imtheish97 avatar Jul 16 '24 14:07 imtheish97