Reload page during test?

Get help with testing, discuss unit testing strategies etc.

Post Reply
User avatar
Posts: 54
Joined: Wed Oct 19, 2016 3:03 pm

Reload page during test?

Post by jminutella »

Hi all,

Is it possible to have a test that can wait for refreshing the page/app reload? For example - I have a Settings feature of my app that saves changes and then reloads the page. I'd like to test that the settings were saved correctly after the page loads.


User avatar
Core Developer
Core Developer
Posts: 16560
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden

Re: Reload page during test?

Post by mats »

Sure, please read:!/guide/cross_page_testing

Set 'enablePageRedirect ' for such a test to have the test code "survive" a page reload, then it'll be easy to test it for you.

Also related:!/api/Siesta.Test.Browser-method-waitForPageLoad
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

API documentation

Post Reply