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.
Runtime Textbox name
Hi,
In my web page i have a table, each row in tables contains text box. these text box are generated during run time.my requirement is to enter a value in textbox of particular row, it may in first row or last. But text box name keep on changing.
_setValue(_textbox(("ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl03\$txtOverrideShipQty"),_near(_span("MEIJER #260"))),"234");
In above code Textbox Name:"ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl03\$txtOverrideShipQty" which is 3rd row.
I did some workaround also(by adding // to text box name) like:
"/ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl/\$txtOverrideShipQty"
but its not working. Please provide solution.
In my web page i have a table, each row in tables contains text box. these text box are generated during run time.my requirement is to enter a value in textbox of particular row, it may in first row or last. But text box name keep on changing.
_setValue(_textbox(("ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl03\$txtOverrideShipQty"),_near(_span("MEIJER #260"))),"234");
In above code Textbox Name:"ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl03\$txtOverrideShipQty" which is 3rd row.
I did some workaround also(by adding // to text box name) like:
"/ctl00\$cphMasterPlaceHolder\$grvReviewStoreParam\$ctl/\$txtOverrideShipQty"
but its not working. Please provide solution.
Comments
Please go through the table related accessor APIs(Accessors of Table related elements) at the following URL:
http://sahi.co.in/w/browser-accessor-apis
try using the _near() API in conjunction with _cell(), _table(), _row() etc.
Send the source for the table in case this doesn't help.
Regards,
Pankaj Kumar