facebook / memlab

A framework for finding JavaScript memory leaks and analyzing heap snapshots
https://facebook.github.io/memlab/
MIT License
4.37k stars 119 forks source link

Login with redirection #86

Closed karan2227 closed 1 year ago

karan2227 commented 1 year ago

Need to run memlab on an authenticated route, How to ensure proper authentication, given the authentication process involves redirections?

I received the following error after automating the flow programmatically in the setup callback. The page is reloaded. MemLab cannot analyze heap across page reloads. Please remove window reload() calls, page goto) calls, or any reload logic.

while trying the same in beforeInitialPageLoad, it gives interaction failure.

JacksonGL commented 1 year ago

while trying the same in beforeInitialPageLoad, it gives interaction failure.

Can you share what interaction failure you got?

Consider using the cookies callback to bypass the authentication process.