def submit(self, selector, by=By.CSS_SELECTOR):
if page_utils.is_xpath_selector(selector):<EOL><INDENT>by = By.XPATH<EOL><DEDENT>element = self.wait_for_element_visible(<EOL>selector, by=by, timeout=settings.SMALL_TIMEOUT)<EOL>element.submit()<EOL>self.__demo_mode_pause_if_active()<EOL>
Alternative to self.driver.find_element_by_*(SELECTOR).submit()