def _find_by_dom(self, browser, criteria, tag, constraints):
        result = browser.execute_script("return %s;" % criteria)
        if result is None:
            return []
        if not isinstance(result, list):
            result = [result]
        return self._filter_elements(result, tag, constraints)
dataset/ETHPy150Open jollychang/robotframework-appiumlibrary/src/AppiumLibrary/locators/elementfinder.py/ElementFinder._find_by_dom/original