18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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:
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
Can somebody please help?
Best regards
Fabien
Could you check out the latest build and try?
Regards,
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
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")));
here is the sample code in my script:
_highlight(_span("Contact Search"));
_assertEqual("Contact Search", _getText(_span("ui-jqgrid-title")));