for me it doesn't work.. It still see:
System.out.println(driver.manage().window().getSize().getWidth()); // = 1440
System.out.println(driver.manage().window().getSize().getHeight()); // = 810
My docker-compose.yml file look like this:
----------------------------------------
seleniumhub:
image: selenium/hub
ports:
- 4444:4444
firefoxnode:
image: selenium/node-firefox
environment:
SCREEN_WIDTH: 1920
SCREEN_HEIGHT: 1080
ports:
- 5900
links:
- seleniumhub:hub
chromenode:
image: selenium/node-chrome
environment:
SCREEN_WIDTH: 1920
SCREEN_HEIGHT: 1080
ports:
- 5900
links:
- seleniumhub:hub
---------------------------------------------
Do you have any clue what I need to change?
Roy