Python Selenium- Unable to click UI element having HTML tag i class

95 Views Asked by At

All the UI elements having the HTML tag "i class" are not getting clicked

Below is the HTML of the element i am trying to click on:

<button class="btn btn-icon btn-transparent  undefined" eventkey="1"><i class="fa fa-bolt hx-primary inline-actions-overview" title="Test this"></i></button>

I have tried various below methods with css and xpaths but nothing seems to work:

1.) self.driver.find_element(By.CSS_SELECTOR, '.fa-bolt').click()
2.) ActionChains(self.driver.get_driver()).move_to_element(element).send_keys(Keys.ENTER).perform()
3.) ActionChains(self.driver.get_driver()).move_to_element(element).double_click(element).perform()
4.) self.driver.execute_script("arguments[0].click();", element)

Any help appreciated !!

NOTE: The element I need to click on is from the below HTML:

<i class="fa fa-bolt hx-primary inline-actions-overview" title="Test this"></i>
0

There are 0 best solutions below