pydoll icon indicating copy to clipboard operation
pydoll copied to clipboard

Browser.WindowID wasn't found

Open cleitonleonel opened this issue 8 months ago • 5 comments

I tried to reproduce a basic example and it works fine up to the point where I try to maximize the browser window, I'm using Linux Ubuntu and Chrome Version 134.0.6998.35 (official build) 64-bit. The bug seems to be in getting the window ID, which seems to be an experimental feature of Chrome, not available for this version or maybe it's another issue. I decided to open this issue to start investigating this problem.

Image

cleitonleonel avatar Mar 12 '25 14:03 cleitonleonel

I'm working on an alternative to get around this issue.

Image

cleitonleonel avatar Mar 12 '25 14:03 cleitonleonel

Hi @cleitonleonel, thanks for reporting this issue. You can check the CDP documentation:

https://chromedevtools.github.io/devtools-protocol/tot/Browser/

If you need any help, just add a comment

thalissonvs avatar Mar 12 '25 15:03 thalissonvs

Hi @cleitonleonel, thanks for reporting this issue. You can check the CDP documentation:

https://chromedevtools.github.io/devtools-protocol/tot/Browser/

If you need any help, just add a comment

I can confirm that with these changes to the get_window_id method;

Image

And implementing a get_window_id_by_target method in the module in the BrowserCommands class;

Image

As well as defining a new constant GET_WINDOW_ID_BY_TARGET, it is now working fine for me.

Image

cleitonleonel avatar Mar 12 '25 17:03 cleitonleonel

Nice, feel free to open a PR, I'll review as soon as possible :) May I assign this issue to you?

thalissonvs avatar Mar 12 '25 18:03 thalissonvs

Nice, feel free to open a PR, I'll review as soon as possible :) May I assign this issue to you?

Ok, no problem.

cleitonleonel avatar Mar 12 '25 18:03 cleitonleonel