-
Open a browser
# start an instance of firefox with selenium-webdriver driver = Selenium::WebDriver.for :firefox # :chrome -> chrome # :ie -> iexplore
- Go to a specified URL
| // Check for phantom | |
| if ( !phantom.casperLoaded ) { | |
| console.log( 'This script must be invoked using the casperjs executable' ); | |
| phantom.exit( 1 ); | |
| } | |
| // get a Casper object. | |
| // See http://casperjs.org/ | |
| // Instantiate casper | |
| var casper = require('casper').create({ |
| /* | |
| * The author disclaims copyright to this source code. In place of | |
| * a legal notice, here is a blessing: | |
| * | |
| * May you do good and not evil. | |
| * May you find forgiveness for yourself and forgive others. | |
| * May you share freely, never taking more than you give. | |
| * | |
| */ | |
| package org.hibernate.dialect; |