Codeception / Codeception/module-webdriver
Suggestion: add a new method resetHostBase
- Ngôn ngữ chính
- PHP
- Star
- 39
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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!
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.