18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
copy a text form this HTML code and place it in a variable
Hi,
I need to copy a text form this HTML code and place it in a variable .
<tr>
<td width="22%" align="right" class="txt">Reference #:</td>
<td width="78%"><strong>needed text
</strong></td>
</tr>
<tr>
<td align="right" class="txt" width="22%">Candidate Name:</td>
<td width="78%" ><strong>aasd
</strong></td>
</tr>
<tr>
<td align="right" class="txt" width="22%">message</td>
<td width="78%"><strong>15/Nov/2010
</strong></td>
</tr>
I want the text- “needed text” form the above code.
I used the code
var $msg
_set($msg,_getText(_byClassName("txt","td")));
But this particular code is getting me someother text information on the screen.
Can someone help me with this. I would be greatful.
Regards
Aparanji
I need to copy a text form this HTML code and place it in a variable .
<tr>
<td width="22%" align="right" class="txt">Reference #:</td>
<td width="78%"><strong>needed text
</strong></td>
</tr>
<tr>
<td align="right" class="txt" width="22%">Candidate Name:</td>
<td width="78%" ><strong>aasd
</strong></td>
</tr>
<tr>
<td align="right" class="txt" width="22%">message</td>
<td width="78%"><strong>15/Nov/2010
</strong></td>
</tr>
I want the text- “needed text” form the above code.
I used the code
var $msg
_set($msg,_getText(_byClassName("txt","td")));
But this particular code is getting me someother text information on the screen.
Can someone help me with this. I would be greatful.
Regards
Aparanji
Comments