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.

How to retrive first 10 chars in a word.

PriyaPriya Members
edited November -1 in Sahi - Open Source
Hi Narayan,

Please tel how to retrive first 10 chars in a word
i have tried with split like this:

var $word = "SahiAutomationTool";
var $new = new Array();
$new = $word.split(10);
_alert($new[0]);

But its not spliting.

Comments

  • narayannarayan Administrators
    $sub = $word.substring(0, 10);

    should give you a substring with the first 10 characters.
Sign In or Register to comment.