Ejemplo n.º 1
0
def get_abs_points(points_elem: webdriver) -> float:
    return float(points_elem.get_attribute('innerText').strip().split('\n')[0])
Ejemplo n.º 2
0
def get_scheme(scheme_elem: webdriver) -> str:
    return scheme_elem.get_attribute('innerText').strip().split('\n')[0]
Ejemplo n.º 3
0
def league_is_correct(header: webdriver) -> bool:
	txt = ': '.join(header.get_attribute('innerText').split('\n')[:2])
	return txt in cfg.LEAGUES
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
 def is_disable_price(price_element: webdriver) -> bool:
     return "regular" in price_element.get_attribute("class")
Ejemplo n.º 6
0
 def is_disable_size(size_element: webdriver) -> bool:
     return "oos" in size_element.get_attribute("class")