A page I’m checking occasionally fails to load, but even when I exclude it from continuing using conditions, it’s considered to be changed when the page next loads properly.
For example, when the page fails to load, there is the text “No stories found”. Is there any way of not using that page for change reference when that text is found?
@textuality thanks for sharing your use case. one of the ways is to validate a page’s content after the page has loaded is using one of assert or panic functions in a macro. the last step in the macro can be something like this:
panic(element_has_text(body, "No stories found"), E_ASSERT, "Page didn't load correctly")
a screenshot with a something similar shown in the app:
Thanks. I had some slight issues with the editor (seems to work differently on the record macro screen vs the edit screen), but I think I’ve got it sorted now.
Will try it out for a couple of days to see how it goes.
the macro recorder auto-generates a wait_doc step. keep that step as is and then add panic as the second step. that should make it work. right now the element_has_text is being called even before the page has loaded.
I’m not having much luck with the macro editor (it’s borderline useless), so if you could suggest changes I could make to the source code that would be helpful.