Skip to content

Instantly share code, notes, and snippets.

View TopherGopher's full-sized avatar

Topher Sterling TopherGopher

View GitHub Profile
<?php
// YOUR LOGIN INFO HERE:
$email = '';
$password = '';
// RUNNING IT FOR A PANTHEON ONE "ORGANIZATION": UNCOMMENT AND ADD YOUR UUID HERE
// $organiztion_uuid = 'some-org-uuid-here';
// helper function
function terminus_json($command) {
/**
* Sets an iFrame ID to no_name_iframe if there is no ID. You can then add a Switch to iFrame step after it using the na_name_iframe ID.
*
* @Given /^I the set the iframe located in element with an id of "([^"]*)"$/
*/
public function iSetTheIframeLocatedInElementWithAnIdOf($element_id) {
$element = $this->getMainContext()->getSession()->getPage()->findById($element_id);
if ($element == NULL) {
throw new \Exception(sprintf("Element with ID '%s' not found", $element_id));