Hello All,
First off, I'm new to the thred.
Second,
I’m wondering if anyone has any suggestions on how to automatically click on a hyperlink when the link itself does not have a ID or Name given to it. With ie automation, you can locate a button on a form and press it by locating its ID.
For example:
The following command will locate the button within the form that has an ID of “Button1” and will then click it.
ie.Document.all("Button1").Click
Because I’m trying to click within a dynamically generated table, the links do not have specific ID’s.
This is a sample of the table with its links:
First off, I'm new to the thred.
Second,
I’m wondering if anyone has any suggestions on how to automatically click on a hyperlink when the link itself does not have a ID or Name given to it. With ie automation, you can locate a button on a form and press it by locating its ID.
For example:
The following command will locate the button within the form that has an ID of “Button1” and will then click it.
ie.Document.all("Button1").Click
Because I’m trying to click within a dynamically generated table, the links do not have specific ID’s.
This is a sample of the table with its links:
PHP:
<div class=centered>
PHP:
[SIZE=3][FONT=Calibri]<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri] <TR>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri] <TD><p class=title> [/FONT][/SIZE]
[SIZE=3][FONT=Calibri] Dropship Orders</p></TD></TR></TABLE>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<!-- begin list -->[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<p></p><span id="lblGrid"><table class='core' style='width:650px;'>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr class='header'><td>Vendor</td><td>Ready For Vendor</td><td>At Drop Shipper</td><td>Not Ready</td><td>Total</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>2XLCORP </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=2XLCORP&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=2XLCORP&filter=DROP&cnt=8' style='margin-right: 100px;'>8</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=2XLCORP&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=2XLCORP&filter=ALL&cnt=8' style='margin-right: 100px;'>8</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>AARCOPRO </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AARCOPRO&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AARCOPRO&filter=DROP&cnt=2' style='margin-right: 100px;'>2</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AARCOPRO&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AARCOPRO&filter=ALL&cnt=2' style='margin-right: 100px;'>2</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>ACCENTS </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACCENTS&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACCENTS&filter=DROP&cnt=5' style='margin-right: 100px;'>5</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACCENTS&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACCENTS&filter=ALL&cnt=5' style='margin-right: 100px;'>5</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>ACME </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACME&filter=PURC&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACME&filter=DROP&cnt=9' style='margin-right: 100px;'>9</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACME&filter=OTHER&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ACME&filter=ALL&cnt=11' style='margin-right: 100px;'>11</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>ALLNONE </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ALLNONE&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ALLNONE&filter=DROP&cnt=4' style='margin-right: 100px;'>4</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ALLNONE&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ALLNONE&filter=ALL&cnt=4' style='margin-right: 100px;'>4</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>AMANO </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMANO&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMANO&filter=DROP&cnt=3' style='margin-right: 100px;'>3</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMANO&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMANO&filter=ALL&cnt=3' style='margin-right: 100px;'>3</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>AMFRAME </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMFRAME&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMFRAME&filter=DROP&cnt=2' style='margin-right: 100px;'>2</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMFRAME&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=AMFRAME&filter=ALL&cnt=2' style='margin-right: 100px;'>2</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>ANDERCO </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ANDERCO&filter=PURC&cnt=6' style='margin-right: 100px;'>6</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ANDERCO&filter=DROP&cnt=62' style='margin-right: 100px;'>62</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ANDERCO&filter=OTHER&cnt=12' style='margin-right: 100px;'>12</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=ANDERCO&filter=ALL&cnt=80' style='margin-right: 100px;'>80</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>BAGMAKE </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BAGMAKE&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BAGMAKE&filter=DROP&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BAGMAKE&filter=OTHER&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BAGMAKE&filter=ALL&cnt=1' style='margin-right: 100px;'>1</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>BCT </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BCT&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BCT&filter=DROP&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BCT&filter=OTHER&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BCT&filter=ALL&cnt=2' style='margin-right: 100px;'>2</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>BEELINER </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BEELINER&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BEELINER&filter=DROP&cnt=1' style='margin-right: 100px;'>1</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BEELINER&filter=OTHER&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BEELINER&filter=ALL&cnt=1' style='margin-right: 100px;'>1</td></tr>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<tr><td class='core'><b>BICGRAPH </b></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BICGRAPH&filter=PURC&cnt=0' style='margin-right: 100px;'>0</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<td class='core'><a href='orders.aspx?vendorno=BICGRAPH&filter=DROP&cnt=8' style='margin-right: 100px;'>8</a></td>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]</table>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]</span><BR><BR><BR>[/FONT][/SIZE]
[SIZE=3][FONT=Calibri]<!-- end list --></div></form></div>[/FONT][/SIZE]