from aisikl.app import assert_ops
from fladgejt.helpers import find_row


# Ciselnik typu SSSC001
class WebuiCiselnikMixin:
    def _select_ciselnik(self, app, text, select_button, compare_column):
        if text is not None:
            with app.collect_operations() as ops:
                app.d.components[select_button].click()

            if ops:
                assert_ops(ops, 'openDialog')

                if ops[0].args[2] != 'SSSC001':
                    raise AISBehaviorError("AIS opened an unexpected dialog: {}".format(ops))

                app.awaited_open_dialog(ops)
                try:
                    index = find_row(app.d.table.all_rows(), **{compare_column: text})
                except KeyError:
                    with app.collect_operations() as ops:
                        app.d.closeButton.click()

                    app.awaited_close_dialog(ops)

                    return False
                else:
                    app.d.table.select(index)

                    with app.collect_operations() as ops:
                        app.d.enterButton.click()

                    app.awaited_close_dialog(ops)

        return True

    def _select_text_ciselnik(self, app, text, text_field, delete_button, select_button, compare_column):
        if not app.d.components[text_field].is_editable():
            app.d.components[delete_button].click()
        app.d.components[text_field].write(text or '')

        return self._select_ciselnik(app, text, select_button, compare_column)

@@ -343,24 +343,187 @@
     if ops:%0A
+                if len(ops) == 1 and ops%5B0%5D.method == 'messageBox' and ops%5B0%5D.args%5B0%5D == 'Podmienkam nevyhovuje %C5%BEiadny z%C3%A1znam.':%0A                    return False%0A%0A
             

Add checking for empty result.