webDOMinator - Minion Scripting Language Reference

Search a Command:
<< Back to Script Level Commands

pagewait

Usage...
pagewait
Makes the scripting engine wait until the next page finishes loading before carrying out the next command.
This applies to webDOM version 2.0.0 and above.

User Comments on pagewait

Example on when to use pagewait

Written by: webDOMinator 2 years and 0 months ago

Pagewait command should only be used when you are clicking on a link that opens up a new page. It should not be used when you click on a link that does not load a new page.

This is a correct example of how to use
pagewait

Quick Reference for "pagewait"
Click on command to see examples & comments
Script Level Commands
Usage: pagewait
Description: Makes the scripting engine wait until the next page finishes loading before carrying out the next command.:
Code

...
click:dom.input.btnG
pagewait
click:dom.a.Images
...

The above code would click the search button, wait for the next page to load, then click on the Images link.

Here's a way to NOT use pagewait
Code

navigate:google.com
pagewait
dom.input.q.value=webDOM
...

Why? because the "navigate" command already assumes the page has to finish loading before running the next line. In this bad example, what you're telling webDOM is that after it's done waiting for the page to finish loading, wait for the page to finish loading again. This will cause unwanted results and will most likely stop the rest of the script from running.

Post a Comment About the "pagewait" Command
Title:
Comment:
Post as Anonymous:
User Login
Username:
Email:
Password:
webDOMinator is copyright ©2008, 2009, 2010, 2011, 2012 Nathaniel D. Gibson. All Rights Reserved.
Contact | Tutorials | Forum
By using webDOMinator you are taking all liability in to your own hands. Nathaniel D. Gibson is not responsible for any damages, loss, or defamation (legal or otherwise) caused to you or your business from using this program. Nathaniel D. Gibson is not associated with, affiliated with, nor responsible for the content submitted and displayed by users of this site.