def find_element_by_sizzle(driver, sizzle_selector):
 elements = driver.find_elements_by_sizzle(sizzle_selector)
 if elements:
  return elements[0]
 else:
  raise NoSuchElementException('Unable to locate element by Sizzle: {selector}'.format(selector=sizzle_selector))

def find_element_by_sizzle ( driver , sizzle_selector ) : elements = driver . find_elements_by_sizzle ( sizzle_selector ) if elements : return elements [ 0 ] else : raise NoSuchElementException ( 'Unable to locate element by Sizzle: {selector}' . format ( selector = sizzle_selector ) )
finds an element by sizzle selector .