# 获取文本 button_name = self.driver.find_element_by_id("sign_in_display").text 转载于:https://www.cnblogs.com/sgwjj/p/8032671.html