I have seen in many examples like this $('.selector')
and I am also using this. So what this $ variable does. This is what I got from the protractor docs.
Calls to $ may be chained to find elements within a parent.
There is no example in docs which use $
alone. We are using $
to chain with element
selector.
Also $('.selector')
itself is an element, when we does this element($('.selector'))
, it is an error.
So how to use this $
selector in protractor. Does it have all the features of JQuery $
. I tried $('.selector').children
which says children
is not a function.
Any help is greatly appreciated.
Thanks!
$(".selector")
means all elements with class as selector. – Axil