Forum Discussion

Arunachandrika's avatar
2 years ago

How to get the value from status bar message

Hi Team,

i am new to Testcomplete tool,in my project we need to capture value from conntenttext: Purchase requisition number 1100234529 created

i want to get the only 10 digit number,iplease help on this.

 

 

  • scottroutesmart's avatar
    scottroutesmart
    Occasional Contributor

    Depending on the language you are using, you could also use a slice() function to cut what you need out of the sting if the number is always in the same position.

    requisition = contentText.slice(28, 38)