little introduction: I'm using Selenium webdriver for Java to run some Tests. I got a Monitor with FullHD resolution (1920x1080) and a UWQHD Monitor (3440x1440). Normally i run selenium via chromedriver with headless as chrome param (which works fine so far). But if I want to develop or debug some Selenium paths, I use it without headless (of course).
Chromedriver Version: 77 Chrome Version: 78.0.3904.97
the Problem: If I run the application without headless param on my fullHD Monitor selenium fails to find elements. If I run it on my UWQHD Monitor with a higher window size like 2500x1200 it works. The DOM really doesnt change between these window sizes. Also I can't set a higher window size then the current resolution of the monitor via:
this.driver.manage().window().setSize(new Dimension(2500,1500));
Do you guys have any idea? I thought the window size is only important for the different DOMs. Even If I track the selenium paths at a lower window size it won't work.
regards, bierat