takes screenshots also in case of dialog text mismatch