from selenium import webdriver

driver = webdriver.Firefox()
driver.get('https://wwww.baidu.com')

size = driver.find_element_by_id('kw').size
print(size)

text = driver.find_element_by_id('cp').text
print(text)

attribute = driver.find_element_by_id('kw').get_attribute('tepy')
print(attribute)

result = driver.find_element_by_id('kw').is_displayed()
print(result)

driver.quit()
