public function submitLoginForm()
    {

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

        // Verify we are on the login page.
        $this->verifyLoginPage();

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

        // Find the submit button.
        $submit_button = $page->find('css', '#wp-submit');

        // Try to focus the submit button.
        try {
            $submit_button->focus();
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for GoutteDriver but neither is it necessary.
        }

        // Click the submit button.
        $submit_button->click();
    }
public function submitLoginForm()
    {

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

        // Verify we are on the login page.
        $this->verifyLoginPage();

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

        // Find the submit button.
        $submit_button = $page->find('css', '#wp-submit');

        // Try to focus the submit button.
        try {
            $submit_button->focus();
        } catch (UnsupportedDriverActionException $e) {
            // This will fail for GoutteDriver but neither is it necessary.
        }

        // Click the submit button.
        $submit_button->click();
    }
public function submitLoginForm ( ) { // Get the session. $ session = $ this -> verifySession ( ) ; // Verify we are on the login page. $ this -> verifyLoginPage ( ) ; // Get the page. $ page = $ session -> getPage ( ) ; // Find the submit button. $ submit_button = $ page -> find ( 'css' , '#wp-submit' ) ; // Try to focus the submit button. try { $ submit_button -> focus ( ) ; } catch ( UnsupportedDriverActionException $ e ) { // This will fail for GoutteDriver but neither is it necessary. } // Click the submit button. $ submit_button -> click ( ) ; }
Submit the WordPress login form
Submit the WordPress login form