Message From Webpag

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
ashuer
Newbie
Posts: 11
Joined: Wed Jun 13, 2012 2:51 pm

Message From Webpag

Post by ashuer » Mon Jun 18, 2012 10:45 am

i Click on the button then a window will open called message from webpage, on that two buttons OK and cancel .
How to submit that form in macro.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Jun 18, 2012 10:59 am

Sounds like a regular windows dialog box. As these are not in-page HTML elements you will need to automate them as you would a regular desktop app. So basically you would do something like:

WaitWindowOpen>Message from Webpage
SetFocus>Message from Webpage
Press ALT
Send>o
Release ALT

Or Press Enter would do the default button. Make sure you have the title correct in the first two lines, and you may need a small delay.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

ashuer
Newbie
Posts: 11
Joined: Wed Jun 13, 2012 2:51 pm

Post by ashuer » Mon Jun 18, 2012 4:00 pm

Tried but not working , any other suggestion.

ashuer
Newbie
Posts: 11
Joined: Wed Jun 13, 2012 2:51 pm

Post by ashuer » Mon Jun 18, 2012 4:21 pm

My problem like this page

http://www.michael-thomas.com/tech/java ... onfirm.htm

Confirm OK, then popup a new window (uses onclick()) - Confirm, then next web page - If you press 'OK', then you will launch another web page.
Ex:

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