reduce
. 500 , , .
This is because when the browser height is below 500 pixels, the top bar disappears from the screen. Above this height, the top bar appears in the browser viewing window, hanging above the news feed. You can also try this manually.
Java
driver.manage().window().setSize(new Dimension(1024, 500));
PYTHON
driver.set_window_size(300, 500)
The above code is in JAVA. But I believe you can find the python equivalent.
NOTE. I have a screen resolution of 1366x768. Thus, the value of 500px can vary. But you definitely need to reduce the height.
source
share