You are here

public function FancyLoginJavascriptTestBase::clickByXpath in Fancy Login 3.0.x

Same name and namespace in other branches
  1. 8.2 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();
}