Thank you for reaching us out.
I reviewed the provided details and here are my comments. First of all I would like to know which is the browser you are executing the test against?
As far as I could understand after the click is performed there is something changed on the page which value you need to verify. Please let me know if this is not correct. I noticed you have also included a delay before the assert statement - would it be possible to increase that to a second or two and double check what the behavior would be?
Please find some possible solutions how to deal with a SystemOutOfMemory exception here
. You could give a try to the last one in case the above action does not change anything.
If there is still no change I would like to kindly ask you for a sample test against public accessible page which reproduces the same behavior. I would like to test that scenario on my end and prepared the simplest possible scenario as per the description. Though it ran successfully.
Thank you in advance for your cooperation! I am looking forward to hearing from you!