from selenium.webdriver.common.by import By class HomeElements: # 侧边栏菜单 menu_ul = (By.XPATH, "//ul[@id='side-menu']")