18 January 2026:


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?

prutledgeprutledge Members
edited July 2014 in Sahi Pro
I can do things like
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?
Sign In or Register to comment.