Navigation error

Hi All,
I have been trying to debug this script for a few days now and thought to post here in case any one of you went through the same issue.

I’m getting navigation error on the last step. If we write combineSteps in the beginning, we can see the step actually gets executed. Without it though, it looks like the script stops executing earlier than it should. Any ideas on how to resolve this?

execAndWait document.querySelectorAll(’[data-task=“signin”]’)[0].click();
exec document.getElementById(“i0116”).value=‘’;
exec document.getElementsByTagName(‘input’)[0].dispatchEvent(new Event(“input”));
execAndWait document.getElementById(“idSIButton9”).click();
exec document.getElementById(“i0118”).value=‘owatest2020’;
exec document.getElementById(“i0118”).dispatchEvent(new Event(“input”));
execAndWait document.getElementById(“idSIButton9”).click();
execAndWait document.getElementsByClassName(“ms-Button”)[1].click();