Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Session.php

function Session::activeElement

Get active element (i.e., has focus): /session/:sessionId/element/active (POST)

  • $session->activeElement()

Return value

mixed

File

vendor/lullabot/php-webdriver/lib/WebDriver/Session.php, line 427

Class

Session
WebDriver\Session class

Namespace

WebDriver

Code

public function activeElement() {
    $result = $this->curl('POST', '/element/active');
    return $this->makeElement($result['value']);
}
RSS feed
Powered by Drupal