-
Notifications
You must be signed in to change notification settings - Fork 2.3k
chore(promises): move element wdpromise to native Promise #5047
chore(promises): move element wdpromise to native Promise #5047
Conversation
Work in progress. I want to pass the full CI (not on my computer) |
9873b32
to
4fcad51
Compare
4fcad51
to
86b4dcd
Compare
1ef106d
to
e276c6a
Compare
return wdpromise.fullyResolved(mapResult) as wdpromise.Promise<T>; | ||
}); | ||
return wdpromise.all(list); | ||
async map<T>(mapFn: (elementFinder?: ElementFinder, index?: number) => T | any): Promise<T[]> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great if we add tests for map
, filter
, each
, reduce
functions with big (ten for example) elements in array. Protractor has a big concurrent issue with it. In my common usage I wrapped Fn
function to be sequential instead of concurrent. I don't know, maybe it was resolved in selenium4
but again would be nice to have some tests to cover this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you write an issue about this? We will address this later. (Procrastination 😛)
0474681
to
abe590c
Compare
abe590c
to
179622a
Compare
No description provided.