public function FeatureContext::showHiddenButton in Open Social 8.4
Same name and namespace in other branches
- 8.9 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 8.3 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 8.5 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 8.6 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 8.7 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 8.8 tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 10.3.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 10.0.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 10.1.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
- 10.2.x tests/behat/features/bootstrap/FeatureContext.php \Drupal\social\Behat\FeatureContext::showHiddenButton()
Shows hidden button.
@When /^(?:|I )show hidden buttons$/
File
- tests/
behat/ features/ bootstrap/ FeatureContext.php, line 393
Class
- FeatureContext
- Defines application features from the specific context.
Namespace
Drupal\social\BehatCode
public function showHiddenButton() {
$session = $this
->getSession();
$session
->executeScript("var inputs = document.getElementsByClassName('secondary-action');\n for(var i = 0; i < inputs.length; i++) {\n inputs[i].style.opacity = 1;\n inputs[i].style.left = 0;\n inputs[i].style.position = 'relative';\n inputs[i].style.display = 'block';\n }\n ");
}