Codeception / Codeception/module-webdriver

Suggestion: add a new method resetHostBase

未關閉
#55 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
39
分支
25
PR 合併指標
30 天內沒有已合併 PR

描述

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

``` php
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!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。