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.

Sahi test tool with Safari browser

aikincaikinc Members
edited November -1 in Sahi - Open Source
Does this tool work with Safari?
I can bring up the tool with Safari browser and everything get recognized but when I select "Play" for my recorded script (from IE), everything just hangs there. Please advise.

Comments

  • Yes. Sahi Works well in safari.

    Can you specify here the info page contents that you see in the controller which comes up from the safari browser.
    If possible , paste the scripts here.

    Thanks,
    Venky.
  • Hi Venky,
    Sorry for the late reply.
    The tool works with my IE7/8 and Mozilla 3.6 but not on Safari 4/3
    Here is a simple basic script that I just tried on Google home page:
    ========
    _assertExists(_submit("Google Search"));
    _assertEqual("Google Search", _submit("Google Search").value);
    _setValue(_textbox("q"), "sahi test tool");
    _click(_submit("Google Search"));
    =======

    As I said before, I'm able to record very much everything but when I got replay for my recorded scripts using Safari browser. The tool just hangs there once I select "Play" button to replay the recorded scripts.
    Also, when I run my batch scripts on Safari, at least one of the bundled scripts fails. But same suite bundle works well on Mozilla and IE browsers
    Please advise
  • narayannarayan Administrators
    Hi aikinc,

    Go to Safari preferences --> Security

    For "Accept cookies" check "Always".

    It should not hang anymore.

    Regards,
    Narayan
  • Thanks Narayan.
    At least my script pass through some of the test steps. But now, I'm having problem with the popup calendar [ _click(_span("courseStartsButton")); ]when using Safari. As soon as the playback gets to that execution step, the case fails. Any idea?
    Same script works fine with Mozilla and IE browsers.
    thanks
  • narayannarayan Administrators
    The calendar HTML may be different for Safari. On that page, try to highlight _span("courseStartsButton") and see if it is available. You may need a conditional statement to check for Safari there.
  • Thanks Narayan.
    I couldn't get it to work with our calendars but it works well on other places
  • It is good that Sahi test tool work with safari because in that case it can test the system. I guess before a software works it should be tested if it is compatible to the OS that is what Sahi does right? So of it works with Safari then it can test the page first before it can be loaded.
Sign In or Register to comment.