Comment #13 on issue 7723 by
at...@star2star.com: invalid element state:
Issue is still present, although sporadic - occurs maybe 1 out of 10 times.
I’m using Selenium 2.47.1 (python).
In setup class:
cls.user_login = '
some...@somedomain.com'
cls.user_password = 'somepassword'
cls.user_box = driver.find_element_by_id('username')
cls.password_box = driver.find_element_by_id('password')
cls.login_button = driver.find_element_by_id('loginButton')
Test case:
@data( some data set )
@unpack
def test_invalid_login(self, username, password, msg):
self.user_box.clear()
self.user_box.send_keys(username)
self.password_box.clear()
self.password_box.send_keys(password)
self.login_button.click()
self.assertEqual(msg, self.element_loaded_return(10, By.CSS_SELECTOR,
'div[id="loginErrorMessage"] > span').text)
Error:
selenium.common.exceptions.InvalidElementStateException: Message: invalid
element state: Element is not currently interactable and may not be
manipulated
(Session info: chrome=44.0.2403.157)
(Driver info: chromedriver=2.18.343845
(73dd713ba7fbfb73cbb514e62641d8c96a94682a),platform=Windows NT 6.1 SP1 x86