Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Map function implementation for element.all (v2) #442

Closed
wants to merge 3 commits into from
Closed

Map function implementation for element.all (v2) #442

wants to merge 3 commits into from

Conversation

andresdominguez
Copy link
Contributor

feat(locators) Improve the map() function in element.all to resolve multiple promises

Resolve promises if there is an object that contains multiple promises.
Added index as a second argument to the map function callback.

Closes #392

…ultiple promises

Resolve promises if there is an object that contains multiple promises.
Added index as a second argument to the map function callback.

Closes #392
…ultiple promises

Resolve promises if there is an object that contains multiple promises.
Added index as a second argument to the map function callback.

Closes #392
@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

*
* @param {function(webdriver.WebElement, number)} mapFn Map function that
* will be applied to each element.
* @return {!webdriver.promise.Promise} A promise with an array of values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say 'A promise that resolves to an array of values...'

…ultiple promises

Resolve promises if there is an object that contains multiple promises.
Added index as a second argument to the map function callback.

Closes #392
@andresdominguez
Copy link
Contributor Author

Done

@juliemr
Copy link
Member

juliemr commented Jan 22, 2014

Automated CLA checker says: please sign CLA at http://code.google.com/legal/individual-cla-v1.0.html Please make sure that the email associated with your PR is the same as the email you use to sign.

@juliemr
Copy link
Member

juliemr commented Jan 22, 2014

Merged! 3151ca7

@juliemr juliemr closed this Jan 22, 2014
@andresdominguez andresdominguez deleted the mapFunctionV2 branch January 25, 2014 03:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add map() function to element.all
3 participants