After integrating the fancybox scripts into my playframework application, I encountered a problem with using play auto-test selenium for testing the page where the script is applied. It seems that the auto-test function cannot accurately simulate the behavior of a real browser, causing the test to get stuck endlessly.
Do you have any suggestions on how to handle this situation?
Therefore, the main question here is: How can Selenium be used with JavaScript libraries (like fancybox) if the test gets stuck?