Mouseover

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
johnc3640
Newbie
Posts: 9
Joined: Tue Oct 26, 2004 2:23 pm

Mouseover

Post by johnc3640 » Tue Nov 02, 2004 3:13 pm

I have been attempting to use the mouseover and/or pushbutton commands with no sucess. I tried a simple example with the MSN start-up web page with no luck. The script is as follows:

Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer

Wait>.5
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer,Sign In
PushButton>Welcome to MSN.com - Microsoft Internet Explorer,Sign In

Why doesn't program recognized either of these commands?
Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Nov 02, 2004 3:48 pm

UNTESTED comments:

1. Try adding "*" at end of names for Windows.
2. Button for SignIn is not a button, it is an image with a hyperlink, not the same as a button. (Search, beneath Sign In is a button).
3. Because this is not a "button" then MouseOver and PushButton will not work here. You may need to use MouseMoveRel to position over the SignIn image, then Press Enter but it might be more accurate to open that web page first. That page is http://login.passport.net/uilogin.srf?id=6528
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

johnc3640
Newbie
Posts: 9
Joined: Tue Oct 26, 2004 2:23 pm

Post by johnc3640 » Tue Nov 02, 2004 5:37 pm

Thanks Bob

A few more questions - how do you tell the difference iAre n a window between a hyperlink and a button? Also, I tried the following code and the mouseover/pushbutton function still doesn't work:

Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome*,Search*
PushButton>Welcome*,Search*


nor did this work:

Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer*,Search*
PushButton>Welcome to MSN.com - Microsoft Internet Explorer*,Search*

and I tried:

Run Program>c:\program files\Internet Explorer\iexplore.exe
WaitWindowOpen>Welcome to MSN.com - Microsoft Internet Explorer
WindowAction>1,Welcome to MSN.com - Microsoft Internet Explorer
wait>1.0
MouseOver>Welcome to MSN.com - Microsoft Internet Explorer,Search
PushButton>Welcome to MSN.com - Microsoft Internet Explorer,Search

Thanks

Lumumba

Post by Lumumba » Tue Nov 02, 2004 7:37 pm

how do you tell the difference iAre n a window between a hyperlink and a button
Cause PushButton> won't work. As a button is a button and a link isn't a button - PushButton> won't work otherwise it would have to be named PushLink> That's the whole story. :wink: (just kidding)

So why not parse for the link and use it instead try to click the image which is asigned to it ?

Let's assume you wanna search for: johnc3640
As Bob has already advised:

Run Program>iexplore "http://login.passport.net/uilogin.srf?id=6528"

Done!

BTW. What's the goal/target ????? That's the main thing you wanna care about. How should we tell you where to go if you don't tell us where you wanna go ...

johnc3640
Newbie
Posts: 9
Joined: Tue Oct 26, 2004 2:23 pm

Post by johnc3640 » Tue Nov 02, 2004 8:56 pm

Thanks Lumumba
My question was based only on an example trying to determine how to use mouseover and pushbutton. The purpose of the information is to learn to use these commands and avoid using mousemove commands to move around a given web page. My limited experience indicates that using mousemove command to find a given button can casue problems whenever there is a slight change in the window configuration, that is the download button, for example, might move slightly and then the command doesnt work - more reprograming.

I gather and download alot of repetitive information but the darn web pages keep changing slightly (the add or change advertisments for example) which makes the "key area" move slightly on the web page.
Finding and right button location each time is key.

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Nov 02, 2004 9:04 pm

Your last message says:
Also, I tried the following code and the mouseover/pushbutton function still doesn't work:
Apparently you decided to ignore my earlier note (with new emphasis):
3. Because this is not a "button" then MouseOver and PushButton will not work here.
---------------------------------------
And as Lumumba has detailed from my earlier posting, the following line should accomplish the same thing.
--------------------------
You also asked:
how do you tell the difference iAre n a window between a hyperlink and a button?
You can get some hints by looking at the Status bar as your mouse hovers over an object. Buttons will not show a hyperlink, but images and obvious hyperlinks will show a link address.

To be more accurate, if you do a Search for "action" on the source code on that web page, you will find 4 instances found. Look closely and you will see the four (4) corresponding "buttons" that cause an "action".
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts