python selenium (六) 获取页面内容
title = driver.title # 获取页面title
page_source = driver.page_source # 获取页面代码
current_url = driver.current_url # 获取当前页面的url
text = driver.find_element(By.ID, 'login').text # 获取当前元素的文本内容
title = driver.title # 获取页面title
page_source = driver.page_source # 获取页面代码
current_url = driver.current_url # 获取当前页面的url
text = driver.find_element(By.ID, 'login').text # 获取当前元素的文本内容