/** * Return Wrapped Element. * If element was not created before: * 1. Context is defined. If context was not passed to constructor - test case (all page) is taken as context * 2. Attempt to get selenium element is performed in loop * that is terminated if element is found or after timeout set in configuration * * @param bool $waitForElementPresent * @return \PHPUnit_Extensions_Selenium2TestCase_Element_Select * @throws \PHPUnit_Extensions_Selenium2TestCase_WebDriverException */ protected function _getWrappedElement($waitForElementPresent = true) { return $this->_driver->select(parent::_getWrappedElement($waitForElementPresent)); }