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.

_navigateTo() not working for me

pankaj.nithpankaj.nith Members
edited November -1 in Sahi - Open Source
Hi,

I am using the latest build (2009-05-21) and am facing this problem using _navigateTo() on firefox. I havnt got a chance to check it on IE yet.
I have _navigateTo("www.google.co.in") in my very first line of the script. When I click set and then set play what happens instead is that the url that appears in teh address bar is something like this:
http://www.google.co.in/_s_/spr/www.google.co.in
The script doesn't proceed further then. I wonder if someone has faced a similar problem.
Any thoughts, suggestions please. I am not being able to follow up the forum regularly for some time now so kindly excuse me if this has been already discussed.

Regards,
Pankaj

Comments

  • narayannarayan Administrators
    Hi Pankaj,

    Unless a URL starts with http:// or /, it will be treated as a relative URL. This is the correct URL resolution behaviour. You just need to use _navigateTo("http://www.google.co.in";).

    Good to see you back at the forums :)

    Cheers,
    Narayan
  • Oh! Thanks Narayan.
    I went through the API list and its really great to see so many new APIs added. Thats really great :)

    Regards,
    Pankaj
Sign In or Register to comment.