jlane9 / pytest-needle

pytest plugin for visual regression testing https://pytest-needle.readthedocs.io
MIT License
18 stars 8 forks source link

Run with selenium-hub #17

Closed daniel-butler closed 5 years ago

daniel-butler commented 5 years ago

Expected Behavior

Run Pytest-needle on docker selenium-hub

Actual Behavior

I’m not able to figure out what to put in the command line to make selenium on selenium-hubs remote webdriver.

Thanks for making this!!

jlane9 commented 5 years ago

@dbutlerdb that isn't something that is specific to this library. Here's pytest selenium's documentation on running against remote browsers. https://pytest-selenium.readthedocs.io/en/latest/user_guide.html#selenium-server-grid.

jlane9 commented 5 years ago

You will have to make sure you expose the hub's ports to the host machine

daniel-butler commented 5 years ago

Thank you for the direction I found out how to run it with the following in the command line

pytest --driver Remote --host selenium-hub --port 4444 --capability browserName firefox