The problem is that the element containing the text 200 is not a "link", but only the li tag was defined on this site, which could work as an interactive element.
the documentation does not indicate it directly, but βLinkβ means only a tags .
The idea is the same, but you will have to find this element differently than thinking about Link. Using xpath would be best for this approach:
x = driver.find_element_by_xpath("//div[./text()='200']") x.click()
Now, of course, this will help to find the element depending on the text contained in it, but to find a specific node it will be easier and easier for you to use id , since it should always be unique:
x = driver.find_element_by_id('ui-id-4')
source share