New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isHeadless method is not working for Chrome headless #750

Closed
sukhjinder-sdei opened this Issue May 29, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@sukhjinder-sdei

sukhjinder-sdei commented May 29, 2018

We are not getting the right value for isHeadless() in the case using chrome headless

       Configuration.browser = WebDriverRunner.CHROME;
        Configuration.headless=true;

WebDriverRunner.isHeadless() This method is returning false.

Tell us about your environment

  • **Selenide Version:**4.11.4
  • Chrome 66.0.3359.181
  • Browser Driver Version: 2.38.551601
  • OS Version: Win 10

Code To Reproduce Issue

Configuration.browser = WebDriverRunner.CHROME;
Configuration.headless=true;
open("anyurl");

WebDriverRunner.isHeadless()

@rosolko rosolko added this to the 4.12.0 milestone May 29, 2018

@rosolko rosolko self-assigned this May 29, 2018

@rosolko rosolko added the bug 🐛 label May 29, 2018

BorisOsipov added a commit that referenced this issue May 29, 2018

Merge pull request #751 from rosolko/fix-headless
Extend isHeadless method with configuration value. Fix #750 issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment