• Dynatrace Recorder

You can use this JavaScript for advanced or custom scripting scenarios.

One possible implementation, shown in the example below, would be to use this function to parse out a value from a specific location in a list; for example, the user selects the 5th list element.

The indexOf() JavaScript function finds the first instance of a given substring in a longer string. But what if you want to find the second, or third instance instead?

The JavaScript function below will parse a string and return the position of the Nth instance of a given substing in that parent string.




  • No labels