from selenium import webdriver
from selenium.webdriver.common.keys import Keys
elem = driver.switch_to_active_element()
elem.send_keys('a')
I want to send keys to a currently active element on the page, but I don't know how to get the active element from driver. I need it because there is no name, id, class etc. on that element. I've found code for Java, something for Python(written above), but there's no result.
Here's the page, and the object "" with no attrs. How to select it?
<div action-name="menu-holder" class="uiMenuButtonSelectionHolder">
<a href="javascript:;" class="choiceMenuClose" action-name="choice-menu-close"></a>
<div style="top: 0px; left: 0px;" class="uiInlineBlock uiMenuHolder">
<div>
<input type="text">
</div>