18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Why do things work in the console but not when running a script file?
I can do things like
in the console window just fine. However, for the life of me I can't make it work when executing a script file. What am I doing wrong? It just returns null, even though the exact same in the console window works great. Are there things that aren't loaded for a script that are loaded in the console window? How can I fix it?
var $sibling = _div({id:"myId"}).nextElementSibling;
in the console window just fine. However, for the life of me I can't make it work when executing a script file. What am I doing wrong? It just returns null, even though the exact same in the console window works great. Are there things that aren't loaded for a script that are loaded in the console window? How can I fix it?