Sign in to follow this  
Followers 0
Onlijn

How to search for and click on specific row in an IE table?

3 posts in this topic

Hi, I'm quite a noob on AutoIT and I can't manage to search for a specific row in an IE table. I want to search with a certain string, but I can't seem to fetch the table to search in. I want to click on the row with "Dual Fuel ZHG" in it. This is how the table looks like:

<table class="DataBlockTable Grid" cellspacing="0" rules="all" templatedatamode="Table" border="1" id="PanelCampaigns_Campaigns_DataGridCampaigns" style="border-collapse:collapse;">

<tbody><tr class="Header" style="white-space:nowrap;">

<td class="Header" style="width:100%;white-space:nowrap;">Naam</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=15200&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">Viswa Campaign</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=13603&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">Combo_infy_mix</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=13602&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">MIjnEssent_Infy</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=13601&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">Infy_AI</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=10786&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">3423</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=13100&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">campaign for Alex</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=12800&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">Dual Fuel ZHG</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14902&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: (1.7) Acq E ZHG green G ZHG grey</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14900&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: (1.5) Acq E ZHG groen G ZHG grijs</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14802&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: (1.1) Service Actiemail and Energie</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor:pointer;">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14901&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: (1.6) Acq E ZHG green G ZHG grey</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14801&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: Acq ATL E Gr - G ZHG 3j (wit)</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14800&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: Acq ATL E Gr - G ZHG 3j (zwart)</td>

</tr><tr class="row1" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14700&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: Acq EG(ZHG) No Pricedate</td>

</tr><tr class="row0" onmouseover="this.style.backgroundColor='Silver'" onmouseout="this.style.backgroundColor=''" style="cursor: pointer; ">

<td class="row0" onclick="document.location='/ProcessRunner/Label/Register2/Customer.aspx?ProcessType=EnrollFullCampaignAccount&amp;RelateClass=cCustomer&amp;RelateId=0&amp;CaseId=PR1228cedae98923eb4e&amp;DomainId=1&amp;MarketingCampaignId=14601&amp;MarketingCampaignPresentationLayer=ProcessRunner&amp;MarketingCampaignType=ATL'">RMS: Service MIJN ESSENT ATL HH</td>

</tr><tr class="Footer" style="white-space:nowrap;">

<td colspan="1">Meer dan 15 Media campagnes gevonden, alleen de eerste 15 worden getoond.</td>

</tr>

</tbody></table>

Can someone please help me?

Share this post


Link to post
Share on other sites



Look in the help files for _IETableWriteToArray to write the table to an array, then look up _ArraySearch to search for a specific row.

Share this post


Link to post
Share on other sites

Thanks for your answer. How can I click on it when the row is found?

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0