Currently, I am creating test automation using Selenium, Protractor, and Jasmine for an Angular web application. The tests are being run within VirtualBox (Host OS: Windows 8, Guest OS: Ubuntu 15.04). At this point, the test is quite basic, with the onPrepare function logging in and waiting for the app to load, followed by a check to verify the loaded page has the correct title.
The app successfully loads and logs in. However, a problem arises where the test does not continue until the mouse is moved, specifically while hovering over the browser's content area.
1) Without any mouse movement, an error eventually appears stating: "Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL."
2) Moving the mouse over other windows or non-content areas of the browser window results in the same issue.
3) Only when the mouse hovers over the browser window's content area does the test proceed immediately.
I shared my code with a colleague who ran it on a Mac without experiencing the same problem. This suggests that the issue may be related to running the test inside VirtualBox, though I cannot confirm this completely.
After searching through Google and Stack Overflow posts, I could not find similar reports of this behavior. Additionally, adjusting default timeouts in Jasmine and Protractor did not resolve the issue:
- jasmine.DEFAULT_TIMEOUT_INTERVAL = 250000
- allScriptsTimeout: 300000
- getPageTimeout: 300000
Since this is my first question posed on Stack Overflow, if there is additional information typically required for these inquiries, please inform me, and I will provide it promptly.