module-webdriver icon indicating copy to clipboard operation
module-webdriver copied to clipboard

Suggestion: add a new method resetHostBase

Open dimitrismitsis opened this issue 9 years ago • 0 comments

This is a suggestion after struggling to reset the host base, that needs resetting after the use of amOnUrl() http://codeception.com/docs/modules/WebDriver#amonurl

My suggestion is the following: Although, it can be written much better probably

    public function resetHostBase(){
        $config = \Codeception\Configuration::config();
        $url = $config["modules"]["config"]["WebDriver"]["url"];
        $this->amOnUrl($url);
    }

I believe that this function is needed in many cases after the use of amOnUrl() when using the WebDriver.

Thank you!

dimitrismitsis avatar Sep 05 '16 11:09 dimitrismitsis