I am using selenium to test the UI of my web page. I am using py.test. This is my code:
def test_author_create_typehead(selenium, small_app):
selenium.get(os.environ['SERVER_NAME'] + '/submit/author/create')
institution = selenium.find_element_by_id('institution_history-0-name')
institution.send_keys('cer')
selenium.find_element_by_css_selector("div.tt-suggestion").click()
assert 'CERN' in institution
Everything seems to work anyway this line throws an error:
Element is not clickable at point (409.5, 33.600006103515625).
Other element would receive the click: <a href="" id="tools-dropdown"
class="dropdown-toggle" type="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="true"></a>
This is the screen that selenium has reported:
As you can see the navbar is covering the element that I want to click. Do you have any idea about how to solve this problem? Or if there is a way to scroll the page with python.
Thanks in advance!