Codeception / Codeception/module-webdriver

Suggestion: add a new method resetHostBase

Abierto
#55 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
PHP
Estrellas
39
Forks
25
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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!

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.