pallavi Posted November 17, 2008 Share Posted November 17, 2008 Hii All, Am New to Auto it ; i am trieng to browse webpages using auto it. i want to click on perticular link in the webpage.. If i use _IELinkGetCollection() it will gives more than 100 links.. if i use below code $sMyString = "jewellery" $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerhtml") If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") ExitLoop EndIf Next there are more than 50 links contains word "jewellery" I need only perticular links to click... i want to click : Jewellery Chola in the below source code..... <table width='100%' cellpadding=0 cellspacing=0 border=0 width='100%'> <tr><td height='10px' colspan=3 ></td></tr> <tr><td width='10'></td><td align='left' colspan='2' class='popsearchfont' ><a href="java script:showdetails('044P9312369','','','');" class='popsearchfont'><span class='popsearchfont'><B>Jewellery Chola</B></span></a><span class='fontblack'></td></tr> <tr><td height=4 colspan='3' ></td></tr> <tr><td width='10'></td><td valign='top'></td><td><table width='100%'><tr><td class='txtsub' valign=top>Location</td> <td class='txtsub' valign='top'>-</td> <td class='font111' style='padding-left:5' width='80%'>Mylapore, Chennai-600004<span class='font111'></span></td></tr></span> <tr><td height=4 colspan='3'></td></tr><tr><td class='txtsub' valign=top >Also See </td> <td class='txtsub' valign='top'>-</td> <td class='font111' style='padding-left:5' width='80%' id='seealso' ><a HREF="java script:get_company('3753##Diamond Merchants')" class='font111' style='text-decoration:none' onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">Diamond Merchants</a>, <a HREF="java script:get_company('##')" class='font111' style='text-decoration:none' onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'"></a></td></tr> <tr><td height=10 colspna='3'></td></tr><tr><td></td><td colspan='2'></td></tr><tr><td height=2 colspan='3'></td></tr></table></td> </table> please help me ...... Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 17, 2008 Share Posted November 17, 2008 Hii All,Am New to Auto it ; i am trieng to browse webpages using auto it. i want to click on perticular link in the webpage.. If i use _IELinkGetCollection() it will gives more than 100 links...Do not double post on this forum. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now