You are here

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

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. 9.0.x tests/features/bootstrap/VarbaseContext.php \VarbaseContext::iScrollup()

#varbase: To scroll up in the current status of the page, about 350 up

Example #1: When I scrollup

@When I scrollup

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

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