When I trying to use open() function then I see error message:
"getDriver" method is not available on the LoginPage (BadMethodCallException)
I noticed that it's true, Page class doesn't have this method. I use $this->getSession()->getDriver(); instead of $this->getDriver(); and it's works.
Maybe this is a simple mistake?