根据表格中的关键字找到这一行的input按钮,点击选中按钮 keyword = ‘460000000001001’ a=self.driver.find_element_by_xpath("//tr[td[text()=" + keyword + “]]//input”) a.click()