0

How do I click this link using Selenium in Python? I've been able to get to the webpage using Selenium and click other links that have IDs. But this one doesn't have an ID or name.

<li ng-class="{active: currentTab == 'overview'}">
  <a href="#" ng-click="tabDetailsNavigationClick('overview')">
     Overview
  </a>
</li>

1 Answer 1

1

Try:

WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.XPATH,'//a[contains(.,"Overview")]'))).click()
#imports
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.