Skip to content
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

update webtest.py to set up headless browser driver correctly for OS X environment #50

Open
kaptaink opened this issue Aug 9, 2018 · 1 comment
Assignees

Comments

@kaptaink
Copy link
Contributor

kaptaink commented Aug 9, 2018

In my OS X environment I can't utilize the Display() function as it relies upon pyvirtualdisplay which doesn't run properly in OS X.

Instead the combination of installing Selenium on my Mac, Chromedriver, and Chrome Canary. Setting the following chrome options will allow the Chrome browser to run headless (without using the Display()):

  • options.add_argument('window-size=800x841')
  • options.add_argument('headless')

Need to extend webtest.py to set the above options and skip Display() for when the environment is OS X.

@hlainchb
Copy link
Member

Pull requests are welcome ;)

@kaptaink kaptaink self-assigned this Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants