Skip to content

Instantly share code, notes, and snippets.

@generalredneck
Created August 2, 2012 15:33
Show Gist options
  • Save generalredneck/3237984 to your computer and use it in GitHub Desktop.
Save generalredneck/3237984 to your computer and use it in GitHub Desktop.
isElementPresentInIframe
public function isElementPresentInIframe($element_locator, $iframe_locator, $timeout = null) {
$this->selectFrame($iframe_locator);
if (empty($timeout) {
$this->waitForFrameToLoad();
}
else {
$this->waitForFrameToLoad($timeout);
}
return $this->isElementPresent($element_locator);
}
public function assertElementPresentInIframe($element_locator, $iframe_locator) {
$this->assertTrue($this->isElementPresentInIframe($element_locator, $iframe_locator));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment