We use https://w3c.github.io/webdriver/#switch-to-window to switch browser tabs, because we need to test our logic in visibilitychangeevent handler. Unfortunately it only works in non-headless mode, in headless mode this event isn't triggered. In our project, we use chromedriver. Is this intentional behaviour or bug?
We use https://w3c.github.io/webdriver/#switch-to-window to switch browser tabs, because we need to test our logic in
visibilitychange
event handler. Unfortunately it only works in non-headless mode, in headless mode this event isn't triggered. In our project, we use chromedriver. Is this intentional behaviour or bug?