Logical test

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
lelesuhett
Posts: 2
Joined: Tue Jun 17, 2008 5:27 pm

Logical test

Post by lelesuhett » Tue Jun 17, 2008 5:31 pm

Hi all,

How can i to do a logical test with imacro? For example: if, case...

Thx!
lelesuhett
Posts: 2
Joined: Tue Jun 17, 2008 5:27 pm

Re: Logical test

Post by lelesuhett » Tue Jun 17, 2008 5:45 pm

... I need to confirm an alert box but it appears sometimes... then, i recorded the click on alert box, but when it do not show, my script fail. I need to test if the alert box will appear.

Help me, please!

Sorry my bad english, but i am brazilian.
jackmacokc
Posts: 9
Joined: Tue Jun 17, 2008 7:07 pm

Re: Logical test

Post by jackmacokc » Tue Jun 17, 2008 8:33 pm

Generally if you add a

Code: Select all

ONWEBPAGEDIALOG={CLOSE}


it will work whether is has a popup or not. In order to add logic you'll need to use a script.
sweetrevelation
Posts: 29
Joined: Sat Feb 14, 2009 9:53 pm

Re: Logical test

Post by sweetrevelation » Fri Feb 27, 2009 7:52 pm

[quote="jackmacokc"]Generally if you add a

Code: Select all

ONWEBPAGEDIALOG={CLOSE}


Your proposed solution did not work for my Alert box that pops up.
Marcia, Tech Support
Posts: 1094
Joined: Thu Jan 29, 2009 1:10 pm

Re: Logical test

Post by Marcia, Tech Support » Fri Feb 27, 2009 8:15 pm

Hello,

Please, try

Code: Select all

ONWEBPAGEDIALOG KEYS={CLOSE} 
but I am afraid it won't work on the free Firefox addon... See http://wiki.imacros.net/ONWEBPAGEDIALOG.
Regards,

Marcia
Post Reply