Jump to content

Recommended Posts

Posted (edited)

Hi,

I have a list of buttons which I need to FIND & SUBMIT manually.

I want to develop a script which can do this automatically.

Let me explain:

Please see the html code at the end of the post.

Currently, I press CTRL+F and search for a string (say 25162).

Then need to press the BUTTON in the row where 25162777 is found.

I wish to automate this process.

I have tried some scripts using "_IETableGetCollection" etc, but somehow I am not able to SUBMIT the button in the same row where the text is located.

Members, please help me with this script.

Thx in advance.

regards,

Vai

<table>
<tr>
    <td>25162</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$250')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>25133</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$251')" /></td>
</tr>
<tr>
    <td>25172</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$252')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>8AB66</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$253')" /></td>
</tr>
<tr>
    <td>25145</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$254')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>25173</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$255')" /></td>
</tr>
</table>
Edited by vaibhavs
Posted

Hi,

I have a list of buttons which I need to FIND & SUBMIT manually.

I want to develop a script which can do this automatically.

Let me explain:

Please see the html code at the end of the post.

Currently, I press CTRL+F and search for a string (say 25162).

Then need to press the BUTTON in the row where 25162777 is found.

I wish to automate this process.

I have tried some scripts using "_IETableGetCollection" etc, but somehow I am not able to SUBMIT the button in the same row where the text is located.

Members, please help me with this script.

Thx in advance.

regards,

Vai

<table>
<tr>
    <td>25162</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$250')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>25133</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$251')" /></td>
</tr>
<tr>
    <td>25172</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$252')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>8AB66</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$253')" /></td>
</tr>
<tr>
    <td>25145</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$254')" /></td>
</tr>
<tr class="GridViewTransactionsalt">
    <td>25173</td>
    <td><input type="button" value="Mark As ed" onclick="java script:__doPostBack('ctPlaceHolder$ViewReq','mark$255')" /></td>
</tr>
</table>
You don't show any code, so we have no idea how far you DID get. Did you get the table in an array? Did you find the value you were looking for? What code did you use to get the object reference to the button from there? How did you attempt to "submit" the button?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...