Reputation: 99
Have read Protractor API documentation and watched one guy's video on Youtube. But didn't make it clear for myself. Is ElementFinder kind of shortcut or pointer to webElement, and Element is instance of some kind of class representing webpage elements'?
Upvotes: 0
Views: 259
Reputation: 363
webElement comes from the Selenium code and is propagated up through one of the JavaScript bindings. WebDriverJS and selenium-webdriver
ElementFinder is the protractor wrapper for webElement. ElementFinder has extended features that help with the tests stability. Protractor tends to add extra features in on ElementFinder to make things syntactically easier.
Upvotes: 1