Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 99024

How to set window size in Selenium Base in CDP Mode?

$
0
0

I am using SeleniumBase in CDP Mode.

I am trying to figure out how to set the window size in CDP Mode AFTER the website is loaded?

If I use the non CDP function sb.set_window_size(x,y), then it gets detected as bot runtimeEnableLeak for opening devtools on https://bot-detector.rebrowser.net:

enter image description here

I tried sb.cdp.set_window_size(x,y) but that function doesn't seem to exist as it crashes with:

sb.cdp.set_window_size(x,y)AttributeError: 'types.SimpleNamespace' object has no attribute 'set_window_size'

Viewing all articles
Browse latest Browse all 99024

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>