Hi,
when I send Tab key to input element in Chrome element doesn't lost its focus. Instead of I see tab key inside of the element.
Sample code from PHP:
$element = $this->_session->activeElement();
$tabKey = new PHPWebDriver_WebDriverKeys('TabKey');
$element->sendKeys($tabKey->key);
$wait = new PHPWebDriver_WebDriverWait($this->_session);
$wait->until(function($session) {
// belowe statement never gets true on Chrome, works perfectly under Firefox and Opera
return $session->activeElement()->attribute('name') === 'pwd';
});
$this->assertEquals('pwd', $this->_session->activeElement()->attribute('name'));
Same problem with python driver but python lib doesn't have active_element method so I'm not posting sample code.
My version of Chromium is 28.0.1500.52 (207119) and Selenium: 2.33.0. My os is Arch Linux.
Anybody with similar issue or suggestion how to solve this one?
Best regards,
piotrr