Jump to content

Click on a button


Floppy
 Share

Recommended Posts

In this web page, is there a way to click on the "License Overview" button without use its 'href' and its name?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link rel="Shortcut Icon" href="/favicon.ico" type="image/x-icon">
  <title>Avira Online Shop</title>
  <link rel="stylesheet" type="text/css" href="/includes/css/front.css">
  <link rel="stylesheet" type="text/css" href="/includes/css/antivir-pe_04.css">
  <link rel="stylesheet" type="text/css" href="/includes/css/cleverDesign.css">
  <script language="javascript" type="text/javascript" src="/includes/js/scripts.js"></script>
  <script language="javascript" type="text/javascript" src="/includes/js/ajax/ajax.js"></script>
</head>
<body id="jsEnvId2">
<table style="margin: 0pt auto; font-size: 10pt;" border="0" cellpadding="0" cellspacing="0" width="1006"><tbody><tr>
<td width="2%"> </td>
<td width="96%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody>
<tr>
<td rowspan="4" class="leftcolumn"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="1"></td>
    <td style="background-color: rgb(255, 255, 255);" align="center" valign="middle"><a href="http://www.avira.com/en/"><img src="/images/logo_web.gif" alt="Avira Home" border="0" height="102" vspace="7" width="102"></a></td>
    <td style="background-color: rgb(255, 255, 255);"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="1"></td>
    <td colspan="3" style="background-color: rgb(255, 255, 255); background-image: url(/images/top_picture_en.jpg); background-repeat: no-repeat; background-position: center;"></td>
    <td rowspan="4" class="rightcolumn"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="1"></td>
    </tr>
<tr class="middle_bar">
<td align="center"><select name="id_lng" class="select_languages" onchange="window.location=this.options[this.selectedIndex].value;">
  <option value="/en/promotion-t0q1aatr05zwftftgnqr?status=created&hash=3334944-4bcb2ceeea2c30702a8f88c7451a8283-90566917" selected>English</option>
</select>
  </select></td>
    <td><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="1"></td>
    <td style="padding-left: 5px;">
        <a href="http://www.avira.com/en/" class="navigator">Home</a> <img src="/images/double_arrow.gif" class="align_middle" alt="navigator" border="0"> 
        <a href="http://www.avira.com/en/products/index.html" class="navigator">Products</a> <img src="/images/double_arrow.gif" class="align_middle" alt="navigator" border="0"> 
            <a href="" class="navigator">VNU Promotion</a>
        </td>
    <td colspan="2" style="padding-right: 10px;" class="white" align="right">
    <!--form name="frm_search" method="get" action="/de/search/index.html">
        <strong>Suche</strong> <input name="q" maxlength="32" class="search_box" type="text">
        <input src="/mycontent/30/submit_blue.gif" class="align_middle" alt="Search" type="image">
    </form--></td>
    </tr>
<tr>
<td class="left_menu" style="border-top: 1px solid rgb(255, 255, 255); font-size: 12pt;" valign="top">
        <!-- InstanceBeginEditable name="left_menu" --><!-- InstanceEndEditable -->
<table style="margin-top: 10px;" border="0" cellpadding="1" cellspacing="0" width="100%"><tbody>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/" class="categs">Home</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/support/index.html" class="categs">Support</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/solutions/index.html" class="categs">Solutions</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line_hover" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line_hover';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/products/index.html" class="categs">Products</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line_hover" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line_hover';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/download/index.html" class="categs">Download</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/threats/index.html" class="categs">Virus Info</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/company/index.html" class="categs">Company</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/press_releases/index.html" class="categs">Press</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/partner/index.html" class="categs" >Partners</a>
</td>
        </tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
        </tr>
<tr>
<td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
<img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="http://www.avira.com/en/newsletter/index.html" class="categs">Newsletter</a></td>
</tr>
<tr>
<td class="menu_line" align="center"><img src="/images/sand.jpg" alt="bar" border="0" height="1" width="145"></td>
</tr>
<!-- Display condition for subnavigation of MyAccount -->
    <tr>
    <td class="menu_line" onmouseover="this.className='menu_line_hover';" onmouseout="this.className='menu_line';">
    <img src="/images/red_arrow.gif" alt="arrow" class="align_middle" border="0" height="10" hspace="3" width="10"><a href="login.html?id=PjxC0QDaDa" class="categs">My Account</a></td>
    </tr>
<!-- Display condition for subnavigation of MyAccount -->
</tbody></table>
</td>
    <td rowspan="2" style="background-image: url(/images/v_dot.gif); background-repeat: repeat-y;"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="1"></td>
    <td style="padding: 10px; background-color: rgb(255, 255, 255);"  valign="top">
    <div id="print_area">
    <!-- Content cleverbridge.com -->
    <div id="cleverContent"><div class="blockHeadline">
    <div id="cleverFac">
        <h1>Promotion Campaign - Account Created</h1>
    </div>
</div>
<span class="intro"><strong>The license has been added to your account</strong><br /><br />We have just sent you an email with a link that you can click to log into your account.<br /><br />Alternatively you can access your license overview here:</span>
<div class="cleverLoginFac">
    <span class="hyperLink"><a class="hyperLink" href="license.html?id=6bTojik3CZ">License Overview</a></span>
</div>
</div>
    <!-- /Content cleverbridge.com -->
    </div> 
    </td>
    <td class="right_menu" valign="top" height="100%" style="border-right:1px solid #F5E8CB; border-left:1px solid #F5E8CB;">
    <table width="100%" height="100%" style="margin-top: 0px;" cellpadding="4" cellspacing="0">
        <tr valign="top">
            <td height="10" align="left">
                <img hspace="0" height="61" border="0" width="158" vspace="5" alt="Logo Computer active" src="/images/content/vendors/logo_ca.gif" /><br /><br /><img hspace="0" height="71" border="0" width="158" vspace="5" src="/images/content/vendors/logo_pcw.gif" alt="Logo Personal Computer World" /><br />
<p>This one month Avira  AntiVir Premium promotion is exclusively for the readers of  ComputerActive and Personal Computer World.</p>
            </td>
        </tr>
        <tr valign="top">
            <td height="100%" align="center"><img src="/images/common/sand.jpg" alt="" border="0" height="1" width="175"></td>
        </tr>
    </table>
    </td>
    </tr>
<tr>
<td width="10%"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="150"></td>
    <td width="75%"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="655"></td>
    <td width="15%"><img src="/images/spacer.gif" alt="spacer" border="0" height="1" width="180"></td>
    </tr>
<!-- Footer -->
    <tr class="bottom_bar">
    <td colspan="7" align="center">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
    <tr>
    <td align="center" nowrap="nowrap" width="15%">
    &nbsp;&nbsp;&copy;&nbsp;2009&nbsp;Avira GmbH
    </td>
    <td align="center" nowrap="nowrap" width="70%">
    <a href="http://www.avira.com/en/company/copyright.html" class="link_footer">Copyright</a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
    <a href="http://www.avira.com/en/privacy.html" class="link_footer">Privacy
    </a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
    <a href="http://www.avira.com/en/sitemap.html" class="link_footer">Sitemap</a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
    <a href="http://www.avira.com/en/feedback.html" class="link_footer">Feedback</a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
    <a href="http://www.avira.com/en/company/imprint.html" class="link_footer">Imprint</a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
      <a href="http://www.avira.com/en/support/faq.html" class="link_footer">FAQ</a>
      <img src="/images/sand.jpg" alt="" class="align_middle" border="0" height="10" hspace="3" width="2">
    <a href="http://www.avira.com/en/company/contact.html" class="link_footer">Contact</a>
    </td>
    <td align="center" width="15%">
    &nbsp;
    <a href="mailto:hbcom.egal@blackholecomputing.com">
    </a>
    <a href="mailto:marc.paulescu@avira.com">
    </a>
    <a href="mailto:aacom.egal@blackholecomputing.com">
    </a>
    </td>
    </tr>
    </tbody>
    </table>
    <div id="zoomer" style="border: 1px solid black; padding: 5px; position: absolute; display: none; z-index: 2; background-color: rgb(255, 255, 255);">
    </div>
    </td>
    </tr>
    <!-- /Footer -->
</tbody></table></td>
<td width="2%"> </td>
</tr></tbody></table>
<!-- InstanceEnd -->
<div style="position: absolute; left: 0px; top: 0px; visibility: hidden;" class="eventContainerWrapper" id="eventContainercleverEventContainer"><div id="eventContainercleverEventContainerHeader"></div><div class="eventContainerContent" id="eventContainercleverEventContainerContent"></div></div></body></html>

Thank you & bye!

Edited by FSoft
Link to comment
Share on other sites

yes, look in the help file under: _IELinkClickByText or _IELinkClickByIndex

I'm asked without use its name, then I can't use _IELinkClickByText.

Ragarding _IELinkClickByIndex, how can I get the button index of that web page?

Link to comment
Share on other sites

I'm asked without use its name, then I can't use _IELinkClickByText.

Ragarding _IELinkClickByIndex, how can I get the button index of that web page?

Text and name are not the same thing, and your attitude towards someone trying to help you will limit the support you get if it continues.

Experiment with the _IE* functions. Get an object reference to the DOM ($oIE), then to the form ($oForm), then _IELinkGetCollection() to get all the links in a collection ($colLinks), and lastly, loop through the collection to find the one with the .innertext property you are looking for.

...or you could let _IELinkClickByText() do most of that for you as previously recommended.

:)

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

Thanks for reply...

1)

... and your attitude towards someone trying to help you will limit the support you get if it continues.

Can you explain me what attitude?

In the previous post, I'm said: I'm asked without use its name, then I can't use _IELinkClickByText.

Can you explain me the reason of your reply?

2) I want to click on the 'License Overview' button...Can you explain me what is the name and the text in the following code?

I see only the text, License Overview, but not the name...

<div class="cleverLoginFac">
<span class="hyperLink"><a class="hyperLink" href="license.html?id=6bTojik3CZ">License Overview</a></span>
</div>

bye

Link to comment
Share on other sites

Thanks for reply...

1) Can you explain me what attitude?

In the previous post, I'm said: I'm asked without use its name, then I can't use _IELinkClickByText.

Can you explain me the reason of your reply?

2) I want to click on the 'License Overview' button...Can you explain me what is the name and the text in the following code?

I see only the text, License Overview, but not the name...

<div class="cleverLoginFac">
<span class="hyperLink"><a class="hyperLink" href="license.html?id=6bTojik3CZ">License Overview</a></span>
</div>

bye

Have you tried to do it with _IELinkClickByText() as suggested by ludocus? If so, please post the code you tried and describe what happened.

The attitude I refer to is that which leads you to dismiss a proposed solution without trying or even understanding it.

In the case of this link, you would find "License Overview" in the .outertext property (and .innertext, they are the same here), which is checked and used by... wait for it... _IELinkClickByText()!

The link does not have a name, but does have an .id = "6bTojik3CZ", which _IEFormElementGetObjByName() will find due to a quirk in the DOM that it will match name or id.

:)

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

Have you tried to do it with _IELinkClickByText() as suggested by ludocus? If so, please post the code you tried and describe what happened.

I'm readed all the function _IELinkClickByText() in the help file. It says:

Simulate a mouse click on a link with text sub-string matching the string provided.

#include <IE.au3>

_IELinkClickByText ( ByRef $o_object, $s_linkText [, $i_index = 0], $f_wait = 1]] )

Parameters

$o_object Object variable of an InternetExplorer.Application, Window or Frame object

$s_linkText Text displayed on the web page for the desired link to click

$i_index Optional: If the link text occurs more than once, specify which instance you want by 0-based index

$f_wait Optional: specifies whether to wait for page to load before returning

0 = Return immediately, not waiting for page to load

1 = (Default) Wait for page load to complete before returning

This function performs a click on a string (containing a link) on a web page.

I don't want to click on the text "License Overview"...but I want to click on that button indipendently from the text.

Browsing the Help File, I found a solution that partiallt works...Here it is:

#include <IE.au3> 

$ie=_IECreate("https://license.avira.com/en/promotion-t0q1aatr05zwftftgnqr?status=created&hash=3341560-f6c0907b232a74515ec194835be8eccf-97726986")
$links=_IELinkGetCollection($ie)
$n_links=@extended
For $link In $links
If StringInStr($link.href,"license.html?id=") Then _IENavigate($ie,$link)
Next

It clicks on the link that contains the string license.html?id=. The script clicks on the button, but after a few seconds I get this error:

...\click.au3 (7) : ==> The requested action with this object has failed.:

If StringInStr($link.href,"license.html?id=") Then _IENavigate($ie,$link)

If StringInStr($link.href^ ERROR

>Exit code: 1 Time: 5.792

Sorry for bad english and thanks for help...
Link to comment
Share on other sites

I'm readed all the function _IELinkClickByText() in the help file. It says:

This function performs a click on a string (containing a link) on a web page.

I don't want to click on the text "License Overview"...but I want to click on that button indipendently from the text.

Browsing the Help File, I found a solution that partiallt works...Here it is:

#include <IE.au3> 

$ie=_IECreate("https://license.avira.com/en/promotion-t0q1aatr05zwftftgnqr?status=created&hash=3341560-f6c0907b232a74515ec194835be8eccf-97726986")
$links=_IELinkGetCollection($ie)
$n_links=@extended
For $link In $links
If StringInStr($link.href,"license.html?id=") Then _IENavigate($ie,$link)
Next

It clicks on the link that contains the string license.html?id=. The script clicks on the button, but after a few seconds I get this error:

...\click.au3 (7) : ==> The requested action with this object has failed.:
If StringInStr($link.href,"license.html?id=") Then _IENavigate($ie,$link)
If StringInStr($link.href^ ERROR
>Exit code: 1 Time: 5.792

Sorry for bad english and thanks for help...

I haven't figured out what you mean by "...that button independently from the text." You said you read the help file, but did you try simply using this?
_IELinkClickByText($ie, "License Overview")
If so, what happened?

The _IELinkClickByText() function does NOT just click on every instance of the given text (i.e. body text). It only clicks on LINKS that contain that text. So the "button" is not independent from its text.

:)

@TheTex: This is just wrong:

If... Then

Code

Endif

It is not

If... Then... Code...

Endif

When there is only a single line of conditional code, it can be placed on the same line after THEN and no ENDIF is used. So both of these are valid:
If [condition] Then
     [single line of code]
EndIf

; Or...

If [conditon] Then [single line of code]

Where there are multiple lines of conditional code they must be on separate lines followed by ENDIF.

:lmao:

Edited by PsaltyDS
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

I try to make myself clear...

I want to click on the button "License Overview".

I can't use _IELinkClickByText($ie, "License Overview") because that text may change.

For example, if you use _IELinkClickByText($ie, "License Overview") with the following code, the script will crash.

<div class="cleverLoginFac">
<span class="hyperLink"><a class="hyperLink" href="license.html?id=6bTojik3CZ">Alternative text</a></span>
</div>

I said that I'm found a solution to click on that button (see previuos post), but I get an error...

Did you understand me now?

Link to comment
Share on other sites

I try to make myself clear...

I want to click on the button "License Overview".

I can't use _IELinkClickByText($ie, "License Overview") because that text may change.

For example, if you use _IELinkClickByText($ie, "License Overview") with the following code, the script will crash.

<div class="cleverLoginFac"><span class="hyperLink"><a class="hyperLink" href="license.html?id=6bTojik3CZ">Alternative text</a></span></div>

I said that I'm found a solution to click on that button (see previuos post), but I get an error...

Did you understand me now?

OK. Is the link always the same index (i.e. the fourth, or twenty-fourth link)? If so, then you could just get the link by:
$oLink = _IELinkGetCollection($ie, 23); 24th link (0-based)
_IEAction($oLink, "click")

I'm not sure what is happening with your code. Some of the links may not have .href properties set. Perhaps insert some debug code:

_IEErrorHandlerRegister()

; ...the rest of the script

$links = _IELinkGetCollection($ie)
$n_links = @extended
ConsoleWrite("Debug: Found " & $n_links & " links." & @LF)
$n = 0; index no. for debug display
For $link In $links
    $sHREF = $link.href & ""; Appending "" ensures a string variable type
    ConsoleWrite("Debug: Link " & $n & ":  " & $sHREF & @LF)
    If StringInStr($sHREF,"license.html?id=") Then
        _IEAction($link, "click")
        ExitLoop
    EndIf
    $n += 1
Next

Another way to drill down would be via the table that the link is embedded in. Best to examine it with a DOM inspector like DebugBar to get the path if you want to go that route.

:)

Edit: Replaced _IENavigate() with _IEAction() per Dale. Makes more sense that way.

Edited by PsaltyDS
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

The link is always the same...I'm tried this solution and it works very well, but there is a problem. How can I get the corrected index of that link? I'm tried some indexes, but without succes.

The script for debugging doesn't show anything...

I don't understand this: "Best to examine it with a DOM inspector like DebugBar to get the path if you want to go that route." Could you explain with easier terms?

bye! :)

Link to comment
Share on other sites

In your code above, try changing

For $link In $links

If StringInStr($link.href,"license.html?id=") Then _IENavigate($ie,$link)

Next

to

For $link In $links

If StringInStr($link.href,"license.html?id=") Then _IEAction($link, "click")

Next

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Thanks to all...

After hundreds of tries, I found a working solution. Here is the code:

$links=_IELinkGetCollection($ie)
$n_links=@extended
For $link In $links
If StringInStr($link.href,"license.html?id=") Then $url=$link.href
Next
_IENavigate($ie,$url)

When the For loop finds a matching URL, it assigns it to the variable $url; at the end of the For loop, the function _IENavigate go to that URL.

------------------------------------------------------------------------------------------------------------------------------------------------------------

Now, another thing...

Is there a way to load the web pages without the images to speed-up the browsing?

thanks and bye :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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