Jump to content

Help with Simple Function.


thatoneguy

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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.