Exemplo n.º 1
0
    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()}"]'))
Exemplo n.º 2
0
 def league_nav_container(self):
     return self._driver.find_element(by.css('.league-nav-container'))
Exemplo n.º 3
0
 def split_dropdown(self):
     return self._driver.find_element(by.css("a[data-dropdown = 'drop-1']"))
Exemplo n.º 4
0
 def stage_dropdown(self):
     return self._driver.find_element(by.css("a[data-dropdown = 'drop-2']"))
Exemplo n.º 5
0
 def regseason_team_rows(self):
     return self._driver.find_elements(by.css(".team-row"))