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.
Start URL question
Hi,
If at the start of every script there's a command like this: _navigateTo(startURL);, could the start URL be done away with?
Thank you.
If at the start of every script there's a command like this: _navigateTo(startURL);, could the start URL be done away with?
Thank you.
Answers
_navigateTo specifies what URL your scripts start with. Why do you need to remove that API?
Regards.
Whenever you run a script, you need to specify a start URL. However, if every script begins with a _navigateTo(startURL), then do I still need to specify it?
no, you don't need to specify a start URL, whereas I always use sahi.example.com/_s_/dyn/Driver_initialized as default startUrl.
My suites always start with a configuration script which logs a few things like date, target, name etc and sets some globals
atSuiteStart.sah:
all nextScripts.sah:
this way you can set the startUrl per suite while haveing a default Url for single script runs...
Regards
Wormi