常用的定位方法:
web.find_element(By.ID, 's-top-left') # 元素id定位
web.find_element(By.CLASS_NAME,'mnav') # 类选择器定位
web.find_element(By.TAG_NAME, 'a') # 元素标签定位
web.find_element(By.NAME,'description') # name属性选择器
web.find_element(By.LINK_TEXT,'新闻') # 通过文字连接选择
web.find_element(By.PARTIAL_LINK_TEXT, '新') # 通过部分文字连接选择
web.find_elements(By.XPATH, '//*[@id="s-top-left"]/a') # xpath选择器
web.find_element(By.CSS_SELECTOR,'#s-top-left>a') # css选择器定位
推荐By.CSS_SELECTOR