Skip to content

Ascertain whether the page has entered the interactive state after being rendered through Server-Side Rendering (SSR) #2078

Discussion options

You must be logged in to vote

As per the discussion with @jan-molak, the following solution worked for me.

I linked the data attribute :data-state="isHydrated" to an element, and within the onMounted hook (Vue 3 composition API syntax), I changed the value of isHydrated from false to true.

And then used Wait.until(Attribute.called('data-state').of(my_element), equals('true')) to wait until the hydration process is completed and the application becomes interactive.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Himanshu21git
Comment options

Answer selected by Himanshu21git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@serenity-js/web Screenplay Pattern APIs for interacting with the Web
1 participant