Skip to main content
deleted 1 characters in body
Source Link
rohit ware
  • 155
  • 1
  • 3
  • 7

Try out below code

store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| '|')[storedVars['delimiter']]} | result
echo  | ${result}

Result will be - 845290

Try out below code

store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| ')[storedVars['delimiter']]} | result
echo  | ${result}

Result will be - 845290

Try out below code

store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-|')[storedVars['delimiter']]} | result
echo  | ${result}

Result will be - 845290

Source Link
rohit ware
  • 155
  • 1
  • 3
  • 7

Try out below code

store | http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290 | URL
store | 1 | delimiter
store | javascript{storedVars['URL'].split('/-| ')[storedVars['delimiter']]} | result
echo  | ${result}

Result will be - 845290