Codeception. How can I use more then one url in my acceptance test?
<p>Sorry for my bad english.
I'm only starting to use codeception. There is need to use two urls in one acceptance test (website (url: example.com) and administrator interface(url: edit-example.com)). But I don't know how to realize this.
I tried to do something like this:</p>

<p>acceptance.suite.yml</p>

<pre><code>modules:
    enabled:
        - WebDriver:
            url: example.com
</code></pre>

<p>testCept.php</p>

<pre><code>$website = example.com
$adm_int = edit-example.com

$I = new AcceptanceTester($scenario);
// Go to website and do some actions
$I-&gt;amOnPage($website);
// some code

// Then go to administrator interface and do some actions
$I-&gt;amOnPage($adm_int);
//some code

// Then I go again to website and look that changes confirmed
$I-&gt;amOnPage($website);
// some code
</code></pre>

<p>But in this case url of website concatenates with url, specified in config file acceptance.suite.yml. And test goes to url  example.com/example.com and in case with administrator interface it goes to example.com/edit-example.com.</p>

<p>The problem is in url, that specified in config file acceptance.suite.yml. If I delete url from this config file - codeception returns exception:</p>

<pre><code>[Codeception\Exception\ModuleConfigException]                     
  WebDriver module is not configured!                               

  Options: browser, url are required                                
  Please, update the configuration and set all the required fields  



Exception trace:
 () at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Module.php:89
 Codeception\Module-&gt;validateConfig() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Module.php:65
 Codeception\Module-&gt;_setConfig() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Module.php:58
 Codeception\Module-&gt;__construct() at n/a:n/a
 ReflectionClass-&gt;newInstanceArgs() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Lib\Di.php:75
 Codeception\Lib\Di-&gt;instantiate() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Lib\ModuleContainer.php:109
 Codeception\Lib\ModuleContainer-&gt;instantiate() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Lib\ModuleContainer.php:62
 Codeception\Lib\ModuleContainer-&gt;create() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\SuiteManager.php:71
 Codeception\SuiteManager-&gt;__construct() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Codecept.php:200
 Codeception\Codecept-&gt;runSuite() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Codecept.php:172
 Codeception\Codecept-&gt;run() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\src\Codeception\Command\Run.php:184
 Codeception\Command\Run-&gt;execute() at PhpstormProjects\MyProject\general\data\lib\vendor\symfony\console\Symfony\Component\Console\Command\Command.php:257
 Symfony\Component\Console\Command\Command-&gt;run() at PhpstormProjects\MyProject\general\data\lib\vendor\symfony\console\Symfony\Component\Console\Application.php:874
 Symfony\Component\Console\Application-&gt;doRunCommand() at PhpstormProjects\MyProject\general\data\lib\vendor\symfony\console\Symfony\Component\Console\Application.php:195
 Symfony\Component\Console\Application-&gt;doRun() at PhpstormProjects\MyProject\general\data\lib\vendor\symfony\console\Symfony\Component\Console\Application.php:126
 Symfony\Component\Console\Application-&gt;run() at PhpstormProjects\MyProject\general\data\lib\vendor\codeception\codeception\codecept:28
</code></pre>

<p>May be there are some instruments in codeception that allow to use absolute urls in function amOnPage()?</p>

<p>Did somebody solve this problem? May be someone have an idea how to help with that problem? </p>

<p>Thanks!</p>