vrsrinivas2000

Query to find text and click on it

6 posts in this topic

#1 ·  Posted

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 .
 

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

You'll want to drop the usage of Send and MouseClick, and just stick to the _IE functions. There of lots of examples on the forum. Here's one thread you can review.

Share this post


Link to post
Share on other sites

#3 ·  Posted

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.

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#5 ·  Posted

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.

Share this post


Link to post
Share on other sites

#6 ·  Posted

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.

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