Jump to content

Archived

This topic is now archived and is closed to further replies.

thatoneguy

Help with Simple Function.

Recommended Posts

Hello all,

I am new to scripting and I am embarking on a rookie project. Accordingly, this question may be remedial but I would really appreciate the help.

I want to write something that will extract  pretermined lines of source code from a page and the place that data at a predetermined point within a HTML file. I know it can be done but I dont know where to start.

THANKS.

Example:

<input title="Check to Remove" type="checkbox" name="chk3569687">
<input title="Check to Remove" type="checkbox" name="chk3569518">
<input title="Check to Remove" type="checkbox" name="chk3569474">

Data to be extracted:

chk3569687
chk3569518
chk3569474

Then place in a seperate text document like this

<tr>
<td>clickAndWait</td>
<td>//a[contains(@href, 'trpItemBuild.aspx?item=4348569&do=r')]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>[color=red]chk3569687[/color]</td>
<td></td>

            <td>click</td>
<td>[color=red]chk3569518[/color]</td>
<td></td>

            <td>click</td>
<td>[color=red]chk3569474[/color]</td>
<td></td>

</tr>

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.