I have tried clicks with the id, css selector, tag name, link name, xpath, etc. But does not works.
This is the HTML:
<a id="download" class="small-button smallred" data-url="//file-converter-online.com/download/" style="display: inline-block;">
Start Converting! </a>
I am using python 3.7.1, webdriver
(chrome), selenium module.
How can I solve this?
My failed attempts:
browser.find_element_by_id("download").click()
browser.find_element_by_xpath('//*[@id="download"]').click()
browser.find_element_by_css_selector(".small-button.smallred").click()
ERROR
Traceback (most recent call last):
File "G:\Mi unidad\Logs\fecha.py", line 22, in <module>
browser.find_element_by_id("download").click()
File "C:\Users\4209461\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium-3.14.1-py3.7.egg\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "C:\Users\4209461\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium-3.14.1-py3.7.egg\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "C:\Users\4209461\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium-3.14.1-py3.7.egg\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\4209461\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium-3.14.1-py3.7.egg\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Element <a id="download" class="small-button smallred" data-url="//file-converter-online.com/download/" style="display: inline-block;">...</a> is not clickable at point (105, 539). Other element would receive the click: <li>...</li>
(Session info: chrome=70.0.3538.77)
(Driver info: chromedriver=2.43.600210 (68dcf5eebde37173d4027fa8635e332711d2874a),platform=Windows NT 6.1.7601 SP1 x86_64)
my failed attempts:
browser.find_element_by_id("download").click()
browser.find_element_by_xpath('//*[@id="download"]').click()
browser.find_element_by_css_selector(".small-button.smallred").click()