Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ sahipro.com with your query.

JavaScript String includes() Method

Hi,
I need Help for Sahi scripting..
I am using JavaScript String includes() Method in sahi to find particular character in string. But it gives me an error as
"Logging exception: Cannot find function includes in object 687.12. [184 ms] [03:09:33.190 PM]
Cannot find function includes in object 687.12
."
Could anyone confirm on this. Can I use String includes() Method in Sahi ?

My code :

while( $String_NM.includes(","))
{
$String_NM= $String_NM.replace(',','');
}

Comments

Sign In or Register to comment.