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.

Java test driver

Felix64Felix64 Members
edited November -1 in Sahi - Open Source
Hi

I have extended SahiTestCase, but I'm having some wierd issues. First of all when setUp() gets called it invokes the browser which is poiting to Sahi internal URL (Driver_start? etc)



why is it doing this? I need to invoke my test app URL.
Second, even after I type my app URL in the text box and test is running I don't see any actions on my test app even though it completes with success.
I’m currently evaluating Sahi and Selenium. I have strong preference towards Sahi for a number of reasons, but this issues really concerns me.


Please help.

Comments

  • I think I'm not doing something right, I even tried to run sample_java_project supplied by Sahi zip and it just hang. It also invoked the same page mentioned by me above and was hanging after that. Where can I get clear steps on what's required and what needs to be done to use JUnit with Sahi.
    thanks
  • narayannarayan Administrators
    Hi Felix,

    The start URL will point to sahi.example.com which is a dummy domain. Sahi needs it to run its tests.

    Your problem is because the proxy has not been set on the browser. If you set the proxy on the browser, the test should run fine. Sahi automatically sets the proxy for Firefox but not of Internet Explorer. Let us know if you still face issues.

    Regards,
    Narayan
  • Thanks a lot Narayan. I was 200% sure I set the browser to use a proxy server and it didn't work, but today all of a sudden it worked, great. Now I have another issue. In my application I have a grid in which I have multiple rows of data. Double clicking on a row basically invokes a new instance of the browser. Looks like Sahi doesn't know how to handle this or I'm doing something wrong. Below is code snippet:

    browser.cell("Alexfunky.net").doubleClick();
    browser.waitFor(10000);
    browser.popup("docViewWindow").image("View next document").click();

    Basically when browser.cell("").doubleClick() is called the popup (which is a new browser instance) never rendered, it looks like it's frozen. Please let me know what to do about this.

    Thanks in advance.
  • narayannarayan Administrators
    Hi Felix,

    Please check that popup blockers are turned off on the browser.

    It is also possible that the doubleClick is actually on a link or something inside the cell. If not, we will need to look at why this is happening. If you can, please email the url and steps to reproduce to support@sahi.co.in, and we will have a look at it.

    Regards,
    Narayan
  • Thanks Narayan. I've sent an email and attached a log file for you to take a look at. Please let me know what else you need to resolve this.

    Felix
  • Hi Narayan

    Something else I think I need to add. Pop up blocker is OFF. I also do the following from my initial test class:

    proxy = new Proxy();
    proxy.start(true);

    And one more , both commented out options, when not commented, caused my test not to run at all. I think that was the problem I originally reported. Once I changed it to "" it worked.

    // browserOption = "-noframemerging";
    // browserOption = "-nomerge";
    browserOption = "";
Sign In or Register to comment.