browserSyncExample

Here is a sample script which shows how to correctly verify that your page has finished loading before continuing.  The inline comments describe why the verifyText is useful for synchronisaction.

openURL|/portal/xlogin
enterText|eid|seleniumInstructor
enterText|pw|seleniumInstructor

click|Login
comment|These next two lines confirm static text from sub-frames within the page.
comment|We can generally assume when the last line passes that the page has finished loading.
verifyText|From the CTools Team
verifyText|Welcome to your personal workspace

click|Worksite Setup
comment|Similar to the previous example, these next three lines confirm text at various places on the page
comment|We can generally assume when the last line passes that the page has finished loading.
verifyText|selenium instructor
verifyText|Worksite Setup
verifyText|Check box(es) to take action on a site.

click|New
verifyText|Site Type
verifyText|Build your own site
verifyText|Create site from template

selectRadio|course site
verifyText|Academic term
verifyValue|Academic term:|$term