def click_element(browser, css_selector, timeout=10, frequency=1.0, header_height=155):
 move_to_element(browser, css_selector, header_height)
 browser.execute_script(('document.querySelector("%s").focus()' % css_selector.replace('"', '\\"')))
 wait_until_condition(browser, condition=(lambda x: EC.element_to_be_clickable((By.CSS_SELECTOR, css_selector))(browser.driver)), timeout=timeout, frequency=frequency)
 browser.find_by_css(css_selector).click()

def click_element ( browser , css_selector , timeout = 10 , frequency = 1.0 , header_height = 155 ) : move_to_element ( browser , css_selector , header_height ) browser . execute_script ( ( 'document.querySelector("%s").focus()' % css_selector . replace ( '"' , '\\"' ) ) ) wait_until_condition ( browser , condition = ( lambda x : EC . element_to_be_clickable ( ( By . CSS_SELECTOR , css_selector ) ) ( browser . driver ) ) , timeout = timeout , frequency = frequency ) browser . find_by_css ( css_selector ) . click ( )
click a browser dom element .