Forum Discussion

acm's avatar
acm
Contributor
8 years ago

How to Extract and Save a "substring" into a Variable for separate tests?

Good day,   Please see the image attached, the text string "Event id: 2172 Status: Work in progress" appears in the top right corner.  It is a long string found within CSS selector,  #ismheader > ...
  • Marsha_R's avatar
    Marsha_R
    8 years ago

    In your case, you can use Set Variable Value.  Pick your variable and then use Code Expression to get the string with your own InputString, StartPosition, and Length.