browser.find_element_by_xpath('//button/span[contains(text(), "指定文本内容")]').click()

指定文本内容 可以是 匹配全部文本 也可是 匹配部分文本