You are here

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

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

#varbase: To go directly to an external website.

Example: When I go to "https://www.google.com" website

@When /^I go to "(?P<domain>[^"]*)" website$/

File

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

Class

VarbaseContext
Defines application features from the specific context.

Code

public function iGoToWebsite($domain) {
  $this
    ->getSession()
    ->visit($domain);
}