Forum Discussion

acm's avatar
acm
Contributor
9 years ago
Solved

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
    9 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.

     

     

    image.png