Difference between element(…) and element(…).getWebElement() in Protractor
问题 Why we need element(...).getWebElement() over element(...) when both works exactly the same Why two APIs for the same functionality 回答1: Protractor is a convenient wrapper around WebDriverJS - javascript selenium bindings. element(...) would result into an ElementFinder instance introduced in Protractor element(...).getWebElement() would result into a WebElement instance from WebDriverJS . Basically, this gives you access to the pure "bare-metal" WebElement . The most common use-case for