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.

Javascript included

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

I try to test some web testing tools such as Sahi.
I configure IE to use sahi as a proxy -> OK
I can start to record first typing such as login, password -> OK
after login on my website there is some javascript include by struts with this error :
Message : Syntax Error
Ligne : 2
Caractère : 1
Code : 0
URI : jscript/jscript.do?key=EE5C32ADE04F85A51C7C39F702756597&menuNameForm=

any possibility to use this functionnality ?
Thanks in advance,
Regards,

Comments

  • narayannarayan Administrators
    Add
    .*jscript[.]do
    to exclude_inject.txt (Dashboard -> Configure -> exclude_inject.txt)
    Save, restart Sahi, clear browser cache and check.

    Regards,
    Narayan
  • Sorry but it still doesn't work.
    include of js is done by :
    <script language='JavaScript' src='/CONTEXT_PATH/jscript/jscript.do?key=75F8E091B00F279464E98C341B55CD99&menuNameForm='></script>

    Probably something wrong with my utilisation
    It seems that sahi couldn't retrieve this information ?
    Something wrong in analyse ?
    Regards,
  • narayannarayan Administrators
    Sorry, it should have been

    .*jscript[.]do.*

    Could you please check again?

    Thanks,
    Narayan
  • Hi,

    Thanks you very much no it works !
    Another question :
    In my application i have some field that have context menu.
    With a right click the context menu appear with some option that i have to select to open popup.
    We can also open the popup by focus this fiels and press F4.
    how can i do that with Sahi ?

    Thanks in advance.
    Regards,
  • >Hi HadanMarv,

    Try with the following Scripts,This might help you.
    _rightClick("Context Menu ID");
    _click(_link("Option ID"));
    

    Regards,
    Theeran.
  • Thanks you very much, no it works :)
    Regards,
This discussion has been closed.