Undefined Title

List of property for WebPage of PhantomJS

2013-05-16

I’m personally checking PhantomJS.

At first about WebPage class. It has some interesting properties and functions. I listed the properties with this simple script on gist. Here is that of PhantomJS 1.9.0.

    objectName: 'WebPage'
    title: ''
    frameTitle: ''
    content: '<html><head></head><body></body></html>'
    frameContent: '<html><head></head><body></body></html>'
    url: 'about:blank'
    frameUrl: 'about:blank'
    loading: false
    loadingProgress: 0
    canGoBack: false
    canGoForward: false
    plainText: ''
    framePlainText: ''
    libraryPath: '{your-path}/phantomjs-learning'
    offlineStoragePath: '{your-home}/Library/Application Support/Ofi Labs/PhantomJS'
    offlineStorageQuota: 5242880
        height: 300
        width: 400
        height: 0
        left: 0
        top: 0
        width: 0
        left: 0
        top: 0
    navigationLocked: false
    zoomFactor: 1
    cookies: Array[0]
    windowName: ''
    pages: Array[0]
    pagesWindowName: Array[0]
    ownsPages: true
    framesName: Array[0]
    frameName: ''
    framesCount: 0
    focusedFrameName: ''

I’ll keep checking PhantomJS having fun.