I have a Javascript script that should work on weekends and at nights and I want to test it with Selenium (yeah, I know about Jasmine, it’s just easier to use Selenium for this project).
Is it possible to somehow change system (browser) dates to test the script without writing setters in the script for testing?
There is a way to do it Selenium way….You can invoke/Execute the Javascript functions Synchronously and Async way….
Synchronous way
Async – Way
I hope this helps…all the best 🙂