python selenium webdriver actions chains key enter is not working on some machine -


i need automate using webdriver send keys followed enter. enter not getting triggered. , happens on machine. tried increasing delays between sendkeys , enter. both machines failing , passing 1 have same python packages/versions.

send_keys(keys.enter) not work on machines.

ele = driver.find_element_by_xpath("xpath") ele.send_keys("test") time.sleep(2) actionchains(driver).send_keys(keys.enter).perform() 

i tried ele.send_key(keys.enter) , ele.send_key("\n"). noting working. tried increasing delays well. no luck

i use pykeyboard key-related issues this. it's useful backup @ least.

the pykeyboard package allows automate keystrokes , hotkeys various tasks. use when selenium gives me trouble finding appropriate elements or not letting me send_keys @ all.

i wrote-up example morning on link here if you're interested:

how implement key combinations (including modifier keys) in python?

good luck.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -