Codeception / Codeception/module-webdriver

Suggestion: add a new method resetHostBase

オープン
#55 コメント 0 件 リアクション 1 件 担当者 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 を短くまとめたダイジェスト。