Ask a Question

Get numbers from string

Ilakkk
Contributor

Get numbers from string

How can I get numbers with string. I need to print only the numbers that contains string 

How can I scroll down in test complete by using JavaScript 

3 REPLIES 3
rraghvani
Trusted Contributor

Do you have an example of your data?

 

Example,

function Test1()
{
    var val = parseInt("-077");
    Log.Message(val);
    
    var val = parseFloat("384.75a");
    Log.Message(val);
}

Examples like see all 55 results. I need to fetch 55 and print

Another issue was Scrolldown is not working other than keys and scrollinto
view which way I can scrolldown
rraghvani
Trusted Contributor

I misread your question, sorry. You want to find the length of a string? See JavaScript String length

 

 

cancel
Showing results for 
Search instead for 
Did you mean: