I'm trying to sign into a website but the problem is that it doesn't work until I hover the mouse pointer over it.
I have tried this
loginform = driver.find_element_by_id('loginDiv')
if loginform.get_attribute('style') == 'display: none;':
print "check!!"
email = driver.find_element_by_id('username')
passwd = driver.find_element_by_id('passwd')
email.send_keys('my_email')
passwd.send_keys('my_pass')
passwd.send_keys(Keys.RETURN)
As I said, I'm able to login through this script only when I hover mouse(I mean first I run this script and see if page is completely loaded and then I quickly move my mouse over login button and I can see my login detail is being typed by this script, but other way if I don't hover it won't be able to log in).