You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an Angular SPA application for testing where there are a row of top navigation tabs. If I click on the tab I may get different responses, depending on the tab. One just goes back to the homepage, with display of the page but with no api calls and changing the url to /home.. Another goes to the search page, which displays the page, fetches the default data both using api calls and changing the url to /search. one goes to the data (entry) page, which displays the page using api calls, but fetches no default data, then changes the url to /data.
I do not know exactly when in the process the url is changed or how, just that await page.url() does not get the right url (it gets the one before the navigation. However if I wait about 500ms, page.url() returns the right url. I have tried waitForNavigation() but this does not seem to work as it does not recognise a navigation. And waitForLoadState('networkidle') does not help either.
Do you have an idea what is going on and why the current url is not found without a hard wait? Is there anything that might be done to by the application developers which might improve the behaviour?
Playwright 1.6.2
Angular 9 or 10
The text was updated successfully, but these errors were encountered:
I have an Angular SPA application for testing where there are a row of top navigation tabs. If I click on the tab I may get different responses, depending on the tab. One just goes back to the homepage, with display of the page but with no api calls and changing the url to /home.. Another goes to the search page, which displays the page, fetches the default data both using api calls and changing the url to /search. one goes to the data (entry) page, which displays the page using api calls, but fetches no default data, then changes the url to /data.
I do not know exactly when in the process the url is changed or how, just that await page.url() does not get the right url (it gets the one before the navigation. However if I wait about 500ms, page.url() returns the right url. I have tried waitForNavigation() but this does not seem to work as it does not recognise a navigation. And waitForLoadState('networkidle') does not help either.
Do you have an idea what is going on and why the current url is not found without a hard wait? Is there anything that might be done to by the application developers which might improve the behaviour?
Playwright 1.6.2
Angular 9 or 10
The text was updated successfully, but these errors were encountered: