Qytera-Gmbh / QTAF

QTAF is a Java test framework based on TestNG and offers easy setup of Selenium and fast extensibility.
https://qytera-gmbh.github.io
MIT License
10 stars 0 forks source link

Headed mode does not work for chrome after update of QTAF to version 0.2.20 + tests can not be started when Firefox is chosen as a browser #327

Open ValeriusSchmidt opened 3 weeks ago

ValeriusSchmidt commented 3 weeks ago

Hi, like the title says, there are 2 issue that needs to be addressed:

  1. The update to 0.2.20 broke the headed mode for chrome, meaning that local tests are only run in headless only now
  2. Tests trying to run on firefox do no execute at all because it throws an error at start
OliverHoenig commented 3 weeks ago

Hello @ValeriusSchmidt,

thanks for documenting the issue.

When changes were made to enable the downloading of files via QTAF in remote drivers (#319 ), the Chrome driver was set to ‘headless’.

https://github.com/Qytera-Gmbh/QTAF/blob/81884db9beabb22f38b1baa54c1695be379fb2a0/qtaf-core/src/main/java/de/qytera/qtaf/core/selenium/CapabilityFactory.java#L71

It was actually intended that this would only be set to headless for remote drivers. But it seems it gets set in general. https://github.com/Qytera-Gmbh/QTAF/blob/81884db9beabb22f38b1baa54c1695be379fb2a0/qtaf-core/src/main/java/de/qytera/qtaf/core/selenium/CapabilityFactory.java#L55

I am checking this unwanted behavior. Another driver, e.g. the Edge Driver, can be used as a workaround for test cases that should not to be executed in headless mode.