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.

Start URL question

jonyxy777jonyxy777 Members
edited June 2013 in Sahi - Open Source
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.

Answers

  • Hi jonyxy,
    _navigateTo specifies what URL your scripts start with. Why do you need to remove that API?

    Regards.
  • Sorry I was unclear in my expression of the issue.

    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?
  • Hi

    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:
    _setGlobal(startUrl, value)
    

    all nextScripts.sah:
    if _getGlobal(startUrl) not null
      navigate to startUrl
    else
      default starturl
    

    this way you can set the startUrl per suite while haveing a default Url for single script runs...

    Regards
    Wormi
Sign In or Register to comment.