Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Mink should support setting the base_url per driver #154

Open
fabiang opened this issue Jun 27, 2014 · 1 comment
Open

Mink should support setting the base_url per driver #154

fabiang opened this issue Jun 27, 2014 · 1 comment

Comments

@fabiang
Copy link

fabiang commented Jun 27, 2014

Hello,

I'm using the Goutte and Selenium2 drivers to test an application.

Since the whole application runs inside a virtual machine I need different base_urls for both drivers. Goutte runs against http://localhost where Selenium need to run the tests against http://localhost:8110/ (the redirection port of the VM). Unfortunately we've to run the tests inside the VM, since on it the only place where we can be sure we've the right PHP version and so on.

My current workaround is a to use a tagged hook:

    /**
     * Workaround for Selenium tests need to connect to a different port.
     *
     * @BeforeScenario @javascript
     */
     public function before(BeforeScenarioScope $scope)
     {
         $this->setMinkParameter(
             'base_url',
             'http://localhost:8110/'
        );
     }

Please add support for setting base_url for every driver itself.
Thanks

@sorbing
Copy link

sorbing commented Sep 4, 2014

+1, base_url and browser_name. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants