diff --git a/lib/element.ts b/lib/element.ts index 5dc5c7c06..1ec7cabdf 100644 --- a/lib/element.ts +++ b/lib/element.ts @@ -14,7 +14,7 @@ export interface WebdriverWebElement extends WebElement {} let WEB_ELEMENT_FUNCTIONS = [ 'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getSize', - 'getLocation', 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', 'serialize', + 'getLocation', 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', 'takeScreenshot' ] as (keyof WebdriverWebElement)[]; diff --git a/lib/selenium-webdriver/webdriver.js b/lib/selenium-webdriver/webdriver.js index 3c46a3dac..d0b21d5da 100644 --- a/lib/selenium-webdriver/webdriver.js +++ b/lib/selenium-webdriver/webdriver.js @@ -415,14 +415,6 @@ webdriver.WebElement.prototype.getDriver = function() {}; */ webdriver.WebElement.prototype.getId = function() {}; -/** - * Returns a promise for the web element's serialized representation. - * - * @returns {!webdriver.promise.Promise.} - * This instance's serialized wire format. - */ -webdriver.WebElement.prototype.serialize = function() {}; - /** * Use {@link ElementFinder.prototype.element} instead *