def riot_navbar_tab(self, tabname): """Get the Riot Navbar tab by name. Since the link-id of the tab is all lowercase, we can simply call the .lower() function. This means that tabname is not case-sensitive. Arguments ---------- * tabname (str): the name of the tab as shown on the website. Examples ---------- - news_tab = riot_navbar_tab('NEWS') - universe_tab = riot_navbar_tab('universe') """ return self._driver.find_element( by.css(f'[data-riotbar-link-id="{tabname.lower()}"]'))
def league_nav_container(self): return self._driver.find_element(by.css('.league-nav-container'))
def split_dropdown(self): return self._driver.find_element(by.css("a[data-dropdown = 'drop-1']"))
def stage_dropdown(self): return self._driver.find_element(by.css("a[data-dropdown = 'drop-2']"))
def regseason_team_rows(self): return self._driver.find_elements(by.css(".team-row"))