sutha
Katalon Apprentice
05/16/2018
edited May 16

javascript delimiter is not working

storeText

css=span.errorMessage

Locked

store

1

delimiter

store

javascript{storedVars['Locked'].split('[')[storedVars['delimiter']]}

Temp

store

0

delimiter1

store

javascript{storedVars['Temp'].split(']')[storedVars['delimiter1']]}

LTNumber

echo

${LTNumber}


Upvote
Quote

Comments

  • sutha
    Katalon Apprentice
    05/16/2018

    Please let me know if anyone knows how to get the “LTNumber” from the “Locked” text.

    Locked-  “The Associate Profile record is locked by 05901 USER through L&T [20114000800] and cannot be edited at this time“

    Im trying to get that exact L&T number(20180314000000) from the ‘Locked’ variable.

    It is working in selenium IDE, but not Katalon.


    Upvote
    Quote
Sign In or Register to comment.