Forum Discussion

ramuboj's avatar
ramuboj
New Contributor
13 years ago

Select the content in between two strings.

Using keyword test approach-How to select the content in between two strings in a Notepad file.
  • Hi Ramu,



    OK, so you need to read a node value from an XML file. You can do this using the Msxml2.DOMDocument scripting object. Check out the second example in the Working With XML Files From Scripts article. To run a script from a keyword test, you can use the Run Script Routine operation.
  • Hello,



    Could you please clarify what you mean by "select the content in between two strings in a Notepad file"? --

    * Simulate text selection inside a text box.

    * Extract text from a string between two substrings.
  • ramuboj's avatar
    ramuboj
    New Contributor
    Hi Helen Kosova,



    'Select the content in between two strings for a Notepad file'.



    Here i need to select the text in between two strings.

    Ex:Text.xml

     

    <Error>

     Hello Welcome to TestComplete.

    </Error>



    in this i need to select the  'Hello Welcome to TestComplete.' text.



    Thanks

    -Ramu