Skip to content

Documentation might need updating (Webdriver Promises) #6

@matfin

Description

@matfin

Hi,

I'm making good use of this module but can I suggest the following changes are added to the documentation:

  1. Regarding the promises as documented in the Selenium Webdriver JS documentation (on Google Code), they say to create a promise as follows:

var deferred = webdriver.promise.defer();

This is incorrect and I could not get it working. From looking at your source code it seems the following is correct:

var deferred = new webdriver.promise.Deferred();

  1. In the Selenium Webdriver documentation (on Google Code), we are told to call the following to resolve a promise:

deferred.fulfill();

This is incorrect and the following should instead be called:

deferred.resolve();

Hope this helps others who have been stuck with these problems.

Thanks,

Matt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions