I've been working with Selenium IDE and have a test script, which uses both 'click' and 'Clickandwait' commands. When running this script multiple times, these steps are behaving inconsistently in the way the link opens. Sometimes the link opens in the same window, which is expected for the site I'm testing on. But sometimes the link opens in a new window when using the exact same test case/step as before, which is causing my test case to fail.
Has anyone else encountered this? or know what could be causing it?