You are here

public function VarbaseContext::iScrolldown in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.6

Same name and namespace in other branches
  1. 8.8 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()
  2. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()
  3. 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()
  4. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()
  5. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()

#varbase: To scroll down in the current status of the page.

Example #1: When I scrolldown

@When I scrolldown

File

tests/features/bootstrap/VarbaseContext.php, line 1381

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iScrolldown() {
  $this
    ->getSession()
    ->executeScript("javascript:window.scrollBy(200,350)");
}