Merge branch '4.3' into 4

This commit is contained in:
Steve Boyd 2021-04-15 13:55:07 +12:00
commit d7321417b4

View File

@ -487,6 +487,18 @@ JS;
$this->iDismissTheDialog(); $this->iDismissTheDialog();
} }
/**
* @Given /^I click on the "([^"]+)" element$/
* @param string $selector
*/
public function iClickOnTheElement($selector)
{
$page = $this->getMainContext()->getSession()->getPage();
$element = $page->find('css', $selector);
assertNotNull($element, sprintf('Element %s not found', $selector));
$element->click();
}
/** /**
* @Given /^I (click|double click) "([^"]*)" in the "([^"]*)" element$/ * @Given /^I (click|double click) "([^"]*)" in the "([^"]*)" element$/
* @param string $clickType * @param string $clickType