Jump to content

Query to find text and click on it


Recommended Posts

Hi,

Initially I wrote a program in auto it ,but i'm unable to understand how to find the control id to fill the syntax could you please help me..?

#include <IE.au3>

Local $oIE = _IECreate (" https://www.usps.com/manage/welcome.htm" )

WinActivate("Track & Manage | USPS - Internet Explorer")
Sleep(500)
send("^f")
sleep(2000)
send("quick tools")
sleep(1000)
MouseClick("Left")
sleep(500)

 

in this im finding quick tools with the above program but unable to click on it to open the look up for zipcode screen .
 

 

Link to comment
Share on other sites

  • Moderators

Moved to the correct forum, as the Examples forum very clearly states:

Quote

Do not post general support questions here, instead use the AutoIt Help and Support forums.

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

3 hours ago, vrsrinivas2000 said:

Hi,

Initially I wrote a program in auto it ,but i'm unable to understand how to find the control id to fill the syntax could you please help me..?

#include <IE.au3>

Local $oIE = _IECreate (" https://www.usps.com/manage/welcome.htm" )

WinActivate("Track & Manage | USPS - Internet Explorer")
Sleep(500)
send("^f")
sleep(2000)
send("quick tools")
sleep(1000)
MouseClick("Left")
sleep(500)

 

in this im finding quick tools with the above program but unable to click on it to open the look up for zipcode screen .
 

 

Go to the link directly instead clicking on it.

#include <IE.au3>

Local $oIE = _IECreate (" https://www.usps.com/manage/welcome.htm" )
_IELoadWait($oIE)
_IENavigate($oIE, " https://tools.usps.com/go/ZipLookupAction_input")

 

Edited by sammy1983
Link to comment
Share on other sites

19 minutes ago, vrsrinivas2000 said:

Thank You sammy1983,

I am giving only an example for you. I need to find the text and click on it. My actual required site is not changing the url after clicking link.

try this

#include <IE.au3>

Local $oIE = _IECreate (" https://www.usps.com/manage/welcome.htm" )
_IELoadWait($oIE)
__IENavigate($oIE, "https://tools.usps.com/go/ZipLookupAction_input", 0, 0x800)

Please note 2 underscores before IENavigate. This will keep your base webpage and open the zip code webpage in another tab. Hope this helps.

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...