-3

I am trying to click on this link using click():

<a id="export-button" class="pull-right" @click="exportFile('/en/my-investments/list.xlsx')">
    <i class="fa fa-file-excel-o"></i> Download Selected List
</a>

but it says the element is not clickable... any idea?

Andersson
  • 49,746
  • 15
  • 64
  • 117
  • Share how you're trying to click – Andersson Aug 09 '18 at 14:09
  • Like @Andersson said, can you share some of your code? What is it that you're trying to do? – usr Aug 09 '18 at 14:25
  • 2
    Welcome to Stack Overflow! See: [How do I do X?](https://meta.stackoverflow.com/questions/253069/whats-the-appropriate-new-current-close-reason-for-how-do-i-do-x) The expectation on SO is that the user asking a question not only does research to answer their own question but also shares that research, code attempts, and results. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and most of all it helps you get a more specific and relevant answer! See also: [ask] – JeffC Aug 09 '18 at 14:39
  • Possible duplicate of [Selenium Web Driver & Java. Element is not clickable at point (36, 72). Other element would receive the click:](https://stackoverflow.com/questions/44912203/selenium-web-driver-java-element-is-not-clickable-at-point-36-72-other-el) – undetected Selenium Aug 11 '18 at 14:24

1 Answers1

0

You may use action class to click your element,

from selenium.webdriver import ActionChains

actions = ActionChains(driver)
actions.move_to_element(driver.find_element_by_xpath("//a[@id='export-button']")).click().perform()
Ishita Shah
  • 3,807
  • 2
  • 19
  • 48