M
M
maxclax2015-10-21 16:38:47
selenium
maxclax, 2015-10-21 16:38:47

How to test Selenium using Vagrant?

I have a project in Django, written a lot of selenium tests. I test everything through Py.test, BDD.
Previously led development on a local machine. Now we have made a team transition to Vagrant.
That is, each of the team has the same config for the development environment. And in general, everything is fine from the moment we got to testing the project. All tests that the browser (selenium) requires are overwhelmed. On the virtual machine, I did sudo apt-get install firefox. As a result I get:


selenium.common.exceptions.WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.

How to be? Maybe you need a setting so that the browser somehow takes from the local machine?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maxclax, 2015-11-05
@maxclax

phantomJs solution for all tests on virtual machines and jenkins

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question