protected function getStrictLocator(array $by) { $type = key($by); $value = $by[$type]; if ($type === 'model') { return WebDriverBy::cssSelector(sprintf('[ng-model="%s"]', $value)); } return parent::getStrictLocator($by); }