You are here

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

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.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()
  5. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrolldown()

Scroll down in the current status of the page, about 350 down.

Varbase Context #varbase.

Example #1: When I scrolldown Example #2: And I scrolldown.

@When I scrolldown

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

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