Assert that the element is present in the dom

        Args:
            selector (str): the selector used to find the element
            test_id (str): the test_id or a str

        Kwargs:
            wait_until_present (bool)

        Returns:
            bool: True is the assertion succeed; False otherwise.

def assert_present(self, selector, testid=None, **kwargs):
        """Assert that the element is present in the dom

        Args:
            selector (str): the selector used to find the element
            test_id (str): the test_id or a str

        Kwargs:
            wait_until_present (bool)

        Returns:
            bool: True is the assertion succeed; False otherwise.
        """
        self.info_log(
            "Assert present selector(%s) testid(%s)" % (selector, testid)
        )

        wait_until_present = kwargs.get(
            'wait_until_present',
            BROME_CONFIG['proxy_driver']['wait_until_present_before_assert_present']  # noqa
        )
        self.debug_log(
            "effective wait_until_present: %s" % wait_until_present
        )

        if wait_until_present:
            element = self.wait_until_present(selector, raise_exception=False)
        else:
            element = self.is_present(selector)

        if element:
            if testid is not None:
                self.create_test_result(testid, True)

            return True
        else:
            if testid is not None:
                self.create_test_result(testid, False)

            return False