Sign in to follow this  
Followers 0
Mucho

How to go down multiple levels in website

2 posts in this topic

#1 ·  Posted (edited)

Hi,

I cannot find any good example on this forum and the web to follow, so I hope someone can help.

I'm trying to navigate down my company's website. I successfully use _IELinkClickByText to open the first link ("Today's Events") which opens a page with a different address.

Then I need to click on another link ("Meetings") on this new page to get to my destination but I cannot get it right, probably due to wrong function.

I cannot use _IENavigate as the address link of "Meetings" can change.

 

#include <IE.au3> 


;Main Page
$oIE =_IECreate ("http://abc/xyz/", 0, 1, 1, 1)
WinSetState("Report - ABC - Windows Internet Explorer","",@SW_MAXIMIZE)   
Send("{Enter}")         ;Login


; Second Level
_WinWaitActivate("ABC Intranet Systems - Windows Internet Explorer","")     
_IELinkClickByText ($oIE, "Today's Events")       ;Click on this link after logging in.



; Third Level
_WinWaitActivate("Report - ABC - Windows Internet Explorer","")     
$oIE = _IEAttach ("Report - ABC - Windows Internet Explorer","", "url")    ; I want to click on "Meetings", the addess of which is not constant.
_IELinkClickByText ($oIE, "Meetings")





#region --- Internal functions Au3Recorder Start ---
Func _WinWaitActivate($title,$text,$timeout=0)
    WinWait($title,$text,$timeout)
    If Not WinActive($title,$text) Then WinActivate($title,$text)
    WinWaitActive($title,$text,$timeout)
EndFunc
Edited by Mucho

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

How often are you planning to post the same question in a new Thread?

I have deleted one already assuming you created a duplicate by accident, but the time between this one and the others is too long.

So please stick to the original one you posted!

-click-

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0