how can i skip a block of code and go to the desired code in selenium?

Find using CSS selectors often overlap. So best is you find using XPath. First right click the element, hover on Copy and click XPath. Then try: link1 = driver.find_element_by_xpath('THE XPATH').get_attribute('href')

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top