You are here

public function FancyLoginJavascriptTestBase::clickByXpath in Fancy Login 8.2

Same name and namespace in other branches
  1. 3.0.x src/TestBase/FancyLoginJavascriptTestBase.php \Drupal\fancy_login\TestBase\FancyLoginJavascriptTestBase::clickByXpath()

Click the element at the given xpath.

File

src/TestBase/FancyLoginJavascriptTestBase.php, line 48

Class

FancyLoginJavascriptTestBase
Base class providing various functions used in functional tests.

Namespace

Drupal\fancy_login\TestBase

Code

public function clickByXpath($path) {
  $this
    ->getSession()
    ->getPage()
    ->find('xpath', $path)
    ->click();
}