Answered question

How to extract value from <textarea> ?

I have a grid whose rows like this one :

<textarea name="ctl00$ContentPlaceHolder1$DataGrid0$ctl02$TxtValueDesc" rows="2" cols="20" id="ctl00_ContentPlaceHolder1_DataGrid0_ctl02_TxtValueDesc" class="TextBox" RowNo="0" style="font-size:8pt;width:350px;">PT. WINDU EKA</textarea>

I want to extract string PT. WINDU EKA by using ctl00$ContentPlaceHolder1$DataGrid0$ctl02$TxtValueDesc as search key, but I have no idea how to construct regex to extract it.
Thx in advance.

Aditya B.
Aditya B.

Aditya B.

2 / 100

In NeoLoad you aren't trying to parse out objects in the DOM, rather you just need a regular regex expression that includes the text directly left (and then right) of the text area. I.e. your regular expression regex when created in NeoLoad using the Variable Extractor (see documentation link): will wind up looking something like this:


Will extract :"PT. WINDU EKA" (or whatever might be in the text area at the time the response is given).

Documentation for dynamic variable extracting in NeoLoad:

Did you find this useful ?

No (0)

Yes (1)


100% of users found this answer useful