}
}
+ /**
+ * Switches to the specified iframe.
+ *
+ * @Given /^I switch to "(?P<iframe_name_string>(?:[^"]|\\")*)" iframe$/
+ * @param string $iframename
+ */
+ public function switch_to_iframe($iframename) {
+ $this->getSession()->switchToIFrame($iframename);
+ }
+
+ /**
+ * Switches to the main Moodle frame.
+ *
+ * @Given /^I switch to the main frame$/
+ */
+ public function switch_to_the_main_frame() {
+ $this->getSession()->switchToIFrame();
+ }
+
/**
* Switches to the specified window. Useful when interacting with popup windows.
*
And I follow "Awesome SCORM package"
And I should see "Normal"
And I press "Enter"
- And I should see "Golf Explained"
+ And I switch to "scorm_object" iframe
+ And I switch to "contentFrame" iframe
+ And I should see "Play of the game"