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.

JQuery

Fabien RoyFabien Roy Members
edited November -1 in Sahi - Open Source
Hello,
I have a problem with a JQuery that is not triggered in Playback. (It works fine when I do it manually.)
I want to reload a list B after selecting an element in list A. And List A remains empty.

Sahi version: Build: 2010-06-11

Can you please let me know what I do wrong?
Thank you in advance and best regards.
Fabien

Here is the code:
<script language="javascript" src="/resources/js/jquery-1.4.2.min.js"></script>
    
    <select name="guarantorId" class="field">
        <option value=""></option>
        <option value="964">AAAAAAAAAAAAAAAAAAAA</option>
    </select>    
    <select name="bondingLineId" class="field200">
    <option value=""></option>
    
    </select>
    
    jQuery.noConflict();
    jQuery(document).ready(function() {                              
        jQuery("select[name='guarantorId']").change(function() {
            jQuery.ajax({
                  url: 'selectAjaxAction.do',
                  data: ({id : jQuery("select[name='guarantorId']").val()}),
                  dataType: "html",
                  success: function(data) {
                     jQuery("select[name='bondingLineId']").html(data);
                  }
            });
        });
    });

Comments

  • Precision: it is not working in IE 6 but working fine in Firefox 3.6.11
  • It does not work in IE 8 either.
    Can somebody please help?

    Best regards
    Fabien
  • narayannarayan Administrators
    Hi Fabien,

    Could you check out the latest build and try?

    Regards,
    Narayan
  • Hello Narayan
    Thank you for your reply.

    Unfortunately, it still does not work with the Sahi 2010-11-03 build and IE 6.

    Any idea?
    Best regards
    Fabien
  • narayannarayan Administrators
    Hi Fabien, let us do a desktop sharing session and see what is wrong. Please drop an email to support@sahi.co.in
  • tsivatsiva Members
    Hello Narayan,
    I have similar issue with JQuery in IE9. It records the jquery content without any issue but it doesn't display the content during playback (in my case it's a grid display). The same script works fine in Firefox browser. I am using windows 7, IE9 and Sahi version 3.5 (2010-06-11). I can share my desktop if you need to check the issue. Please let me know. Thanks for your help.
    here is the same code in my script:
    _highlight(_span("Contact Search"));
    _assertEqual("Contact Search", _getText(_span("ui-jqgrid-title")));

  • tsivatsiva Members
    I was using sahi open source 4.3 version, windows 7 and IE9. I have recorded a script on our web application which is designed with Jqury. Sahi is not able to load Jquery grid in IE browser during the script replay. Same script wotks fine in firefox browser. The grid is displaying correctly in IE browser outside Sahi. I need help for this issue. Thabks in advance.
    here is the sample code in my script:
    _highlight(_span("Contact Search"));
    _assertEqual("Contact Search", _getText(_span("ui-jqgrid-title")));
Sign In or Register to comment.