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.

The parameter passed to _click was not found on the browser

swathiswathi Members
edited November -1 in Sahi - Open Source
Hi,

I am splitting the scripts using sahipro. Suddenly at the end of the scripts generating an error showing as below:

_click(_link("template1_form:clearBtn")); Error: The parameter passed to _click was not found on the browser.

we are unable to understand why it is stopping. The same code is repeated for 4 scripts those were executed. Only for 1 or 2 scripts this was the problem. Individually these scripts are successfully executed. In splitting itself the error is generated.

Thanks In Advance.

Comments

  • Hi Swathi,

    Kindly check if you are able to see _link("template1_form:clearBtn") physically when you are running the script after splitting the scripts.

    Also, make sure that there is a continuity of the scripts when you split the scripts.

    Example:

    If you have split the script as
    file1.sah
    file2.sah
    file3.sah then if file1.sah has login details (Username and password) script and if the click on login button is in file3.sah, its obvious that you will get the above error as there is no script available to click on login button in file2.sah.

    Regards
    Sumitra
  • Hi Sumitra,

    The login details was present in all the scripts but the problem is unable to open the browser for few scripts.

    And we have another problem after splitting the scripts to know the results in dblogs the status displayed is wrong as below:

    Browser Type firefox
    Start Time Jan 03, 2012 02:03:29 AM
    End Time Jan 03, 2012 02:55:21 AM
    Time Taken (ms) 3112006
    Total scripts run 30
    Scripts passed 16
    Scrips failed 4
    Status FAILURE

    Host Port Tests executed
    localhost 9999 14
    remotehost 9999 16

    Here we have total 30 scripts splitted into two machines in that 25 got passed and five got failed.
    In the Console its showing correct result and in the dblogs table it is not displaying the script for both pass and fail.
  • Hi Swathi,

    When you tell "unable to open the browser for few scripts" : Do you mean that Sahi is not executing these few scripts at all.

    Could you please check if there is a continuity for the few scripts which are not executing.

    How are you executing the scripts which are in the other machine?

    Regards
    Sumitra
  • Hi Sumitra,

    Iam splitting the testcases into 3 machines by using the "drun" command. Out of 30 scripts 3 of them getting failed due to the "_click was not found on the browser". That means for these scripts browser is not opened. In suite these scripts are listed in the first.

    And when I use only 2 machines for spliiting in the console all the executed scripts have been shown.
    But in the dblogs in the table format only few are displayed.And the count displayed is also wrong.
    In the above post I have mentioned with an example.

    Thanks In Advance,
  • Hi Swathi,

    Can you run the first 3 scripts separately from the controller and check if you are able to run these scripts?

    Could you please post the first script here for which browser is not opening while running it through Suite?

    If you are still facing issue, we will have a desktop sharing and help you to resolve your issue.

    Regards
    Sumitra
  • Hi Sumitra,

    I am facing with another problem after splitting the scripts, to know the results in dblogs the status displayed is wrong as below:

    Browser Type firefox
    Start Time Jan 03, 2012 02:03:29 AM
    End Time Jan 03, 2012 02:55:21 AM
    Time Taken (ms) 3112006
    Total scripts run 30
    Scripts passed 16
    Scrips failed 4
    Status FAILURE

    Host Port Tests executed
    localhost 9999 14
    remotehost 9999 16

    Here we have total 30 scripts splitted into two machines in that 25 got passed and five got failed.
    In the Console its showing correct result and in the dblogs table it is not displaying the scripts for both passed and failed. And the scripts passed and failed are not tallying with the total scripts.
    Iam not able to understand why it is displaying the wrong status.

    Thanks In Advance.
  • Hi Swathi,

    Please send an email to support@sahi.co.in with your availability for a desktop sharing tommorrow. We will have a desktop sharing and help you to resolve your issue.

    Regards
    Sumitra
Sign In or Register to comment.