protected function verifyLoginPage()
    {

        // Get the session.
        $session = $this->verifySession();

        // Get the url.
        $url = $session->getCurrentUrl();

        // If the login path isn't in the current URL.
        if (false === strrpos($url, $this->path)) {
            // We aren't on the login screen.
            throw new ExpectationException(
                sprintf(
                    'Expected screen is the wp-login form, instead on "%1$s".',
                    $url
                ),
                $this->getDriver()
            );
        }

        // Get the page.
        $page = $session->getPage();

        // Login form CSS selector
        $login_form_selector = '#loginform';

        // Search for the login form exists.
        $login_form = $page->find('css', $login_form_selector);

        // If the login form was not found.
        if (null === $login_form) {
            // We aren't on the login screen.
            throw new ExpectationException(
                sprintf(
                    'Expected to find the login form with the selector "%1$s" at the current URL "%2$s".',
                    $login_form_selector,
                    $url
                ),
                $this->getDriver()
            );
        }
    }