def get_abs_points(points_elem: webdriver) -> float: return float(points_elem.get_attribute('innerText').strip().split('\n')[0])
def get_scheme(scheme_elem: webdriver) -> str: return scheme_elem.get_attribute('innerText').strip().split('\n')[0]
def league_is_correct(header: webdriver) -> bool: txt = ': '.join(header.get_attribute('innerText').split('\n')[:2]) return txt in cfg.LEAGUES
def get_league(header: webdriver) -> str: info = ': '.join(header.get_attribute('innerText').split('\n')[:2]) league = info.split(': ')[1].upper() return utl.fix_league_name(league_name=league)
def is_disable_price(price_element: webdriver) -> bool: return "regular" in price_element.get_attribute("class")
def is_disable_size(size_element: webdriver) -> bool: return "oos" in size_element.get_attribute("class")