This repository was archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
'typings' missing from Protractor 3.3.0 package.json on NPM #3350
Comments
I took a look at this and after some quick checking, it is not a bug. Hopefully this will help clarify the types for the items in question:
when forking a new driver instance:
Also, there is no type Element. Are you getting the typings off of master? How are you getting your global imports? Have you tried the example for typescript? |
Hey Craig and thanks for the quick response! I think I see what's happening:
Given the above, could you please advise when is the Many thanks, |
It will happen soon! Possibly today. |
Sweet! Much appreciated 👍 |
ProtractorPlugins are now part of typings. This will be addressed in the next hot fix. |
Great stuff, looking forward to the release! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Assume a test utilising several browsers, for example one verifying interaction between chat clients.
The docs say that in order to get hold of the
element
function, one can use theelement
property of thebrowser
object:To my current understanding, the difference between the global
element
helper andbrowser.element
is that the former is an instance ofprotractor.Element
while the latter is aprotractor.ElementFinder
.I'm not sure if this differentiation is intentional or if it's a bug?
The effect of it is that in a Typescript test, one can't simply refer to the
.all
helper using:but instead has to do this to make the transpiler happy:
Shouldn't the
element
field of thebrowser
object be of typeprotractor.Element
instead ofprotractor.ElementFinder
?Thanks,
Jan
The text was updated successfully, but these errors were encountered: