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.
Field is identifying as textarea and ajax framework related issue
Hi All,
I facing some problems with some ajax related fields in my application. Can some one gimme an idea?
I'm currently using sahi 2009-01-21 version and IE7.
A field in my application is being identified by sahi as "textarea" which is a ajax component.
On entering some data into it...a dynamic drop down list box will appear showing all the records available related to [or starting with] previously entered data.
I need to select a value out of that drop down list box and then continue with the execution.
My application has many such fields which are mandatory to fill as well.
But since it is a text area and sahi is not recognizing the dynamic drop down list box. Any suggestions on how to approach for this type of fields?
I tried to check if i can trigger keypress event on that list box of down arrow or tab but i'm not able to get any info on those..
Please let me know.
Regards,
Vazid.
I facing some problems with some ajax related fields in my application. Can some one gimme an idea?
I'm currently using sahi 2009-01-21 version and IE7.
A field in my application is being identified by sahi as "textarea" which is a ajax component.
On entering some data into it...a dynamic drop down list box will appear showing all the records available related to [or starting with] previously entered data.
I need to select a value out of that drop down list box and then continue with the execution.
My application has many such fields which are mandatory to fill as well.
But since it is a text area and sahi is not recognizing the dynamic drop down list box. Any suggestions on how to approach for this type of fields?
I tried to check if i can trigger keypress event on that list box of down arrow or tab but i'm not able to get any info on those..
Please let me know.
Regards,
Vazid.
Comments
In the meanwhile try putting some wait after putting the text in the text area that you are talking about.
Regards,
Pankaj.
Yea the field i mentioned is calling some functions when i checked up the html code of it
I'm pasting the HTML code of the field.. Hope this helps providing any solution.
<tr>
<td class="td_rowodd">
<strong>Field Name: *</strong></td>
<td class="td_rowodd">
<textarea name="ctl00$ContentPlaceHolderDetailCtrl$NewRequestUserControl$txtFieldName" rows="2" cols="20" id="ctl00_ContentPlaceHolderDetailCtrl_NewRequestUserControl_txtFieldName" class="formele7" onblur="CaptureFieldName();" onChange="CheckValidData(this,'txtPrimaryGM','NRhdnPriaryGMID');"></textarea>
</td>
</tr>
I think we somehow need to put some wait befor the onblur happens.
looking into this... will revert back in case i can think of something
Any solution on the problem I posted?? Please let me know since this is very much critical for our application to choose a tool for testing..
For more info...the field i mentioned in the above page is very much similar to the ones in this page
http://en.wikipedia.org/wiki/Main_Page
In the page..there is a "Search" text box ..when entered a relavent value in it ..it displays all the values starting with them
Ex:
If i enter "Ban" in that text box then it display all the fields starting with "Ban" which we have to select either by pressing the Down Arrow on keyboard or using mouse...
I have similar fields in my application
Thanks in advance
-Vazid
The Wiki page works easily. Here is the script The only thing was that, I manually added the first step, since the dropdown appeared before the textbox was recorded.
You can email me at narayan@sahi.co.in with more details of your project and let us see how we can fix your issue.
Regards,
Narayan
I checked in wiki....The field i mentioned in wikipedia page has id's for each of the item in the list box and hence it works fine with sahi..
But in my application am not getting any specific id's to capture the List box...Sahi recognizes them as
_cell(_table(53), 1, 1)
So there comes the problem for me...coz I believe every time the table id might get changed if any field gets added in the page.
I will mail you my application screen shot....and the way sahi identifies it...Hope you may get an idea about my application..
Regards,
Vazid
Please let me know if it works for you.
_listItem takes either the id or the visible text as its single parameter. Eg _listItem("visible text") or _listItem("myId").
Regards,
Narayan