Python Selenium find element by link text contains a string with wildcard or regex Python Selenium find element by link text contains a string with wildcard or regex selenium selenium

Python Selenium find element by link text contains a string with wildcard or regex


driver.find_element_by_partial_link_text(u'评论')

You can using partial_link_text.This way you can find a link with changing content using some part which is always constant.