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.

in for loop 10 digit number is not accepting

edited November -1 in Sahi - Open Source
In my application we have text box in that we want to enter only numbers


inputs for given by manually:----

"1".....it is accepting

"8050485191".....it is accepting

"!2d#6&H"......it is not accepting

"$#$2?3^4*5".....it is not accepting

"1234#$%56789".....it is not accepting

"!@##%$%%^";.....it is not accepting

"sandeep".....it is not accepting

if i give the through sahi it is not accepting...

code

var $arr1 = new Array("1","!2d#6&H","$#$2?3^4*5","1234#$%56789","!@##%$%%^";,"sandeep","8050485191")

for(var $i=0;$i<$arr1.length;$i++){
textbox($arr1[$i]);
}
function textbox($snippet){
_setValue(_textbox("iqty"), $snippet);
_click(_link("+"));
}

now the problem with 8050485191....it is showing number is like that -539449400


sahi output is this

Sub-total: Rs -2147483648
Taxes: Rs 0.00
Approximate Container Charges: Rs 0
Total: Rs 0

manual output

Sub-total: Rs 2147483647
Taxes: Rs 0.00
Approximate Container Charges: Rs 0
Total: Rs 2147483647



it is not adding the 8050485191 in manually it is accepting........


wat assert i want to use for this type

plzzzzz help about this issue

thanks in advance
Sign In or Register to comment.