!POPUP ALLOWED

From iMacros
Jump to: navigation, search

Allow popups for a given URL during a macro run. Technically this is the same as white-listing the URL permanently. The advantages are that you can store this information in the macro and thus make it run everywhere, without the user having to manually white-list the URL.

This command is only available (and required) in iMacros for Firefox.


Value Firefox

Any valid URL e. g. SET !POPUP_ALLOWED www.iopus.com

Without white-listing the main page URL Firefox blocks all its popups (Popup test page)

A special purpose command CLEARCOMPLETELIST deletes all popup white-list entries, even the ones made a user manually. Please use this parameter carefully. It is only intended for certain automated web browser testing.

Note: This command is only available (and required) for Firefox, as the iMacros Browser does not restrict the opening of popups.

Set By

[ ] Internal

[X] SET

Internal means that the iMacros program itself sets the value of the variable during program run. SET means that the user can set this value via the SET command inside a macro.

Examples

 TAB T=1     
 TAB CLOSEALLOTHERS
 SET !POPUP_ALLOWED www.iopus.com 
 URL GOTO=http://www.iopus.com/imacros/demo/v6/popup/        
 TAG POS=1 TYPE=A ATTR=HREF:*open3.htm   
 TAB T=4 
 'Verify that popup opened ok:  
 TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f3 ATTR=NAME:T1 CONTENT=Popup<SP>3 


See Also

SET, PROMPT