PHPUnit and WebDriver - How to get the current URL? PHPUnit and WebDriver - How to get the current URL? selenium selenium

PHPUnit and WebDriver - How to get the current URL?


The answer is:

$currentURL = $this->url();

I also asked this question here

Thanks to @jaruzafa


You can also use

$url=$this->getLocation();