You are here

public function VarbaseContext::iScrollup 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::iScrollup()
  2. 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrollup()
  3. 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrollup()
  4. 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrollup()
  5. 8.7 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrollup()

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

Varbase Context #varbase.

Example #1: When I scrollup.

@When I scrollup

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

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