1 driver.implicitly_wait(10) 2 a = driver.find_element_by_css_selector( '.layui-layer-content.layui-layer-padding').get_attribute('textContent') 3 print(a)