From 1b517d616256c0437cded6476baa14316a70c5b4 Mon Sep 17 00:00:00 2001 From: kolodiy Date: Tue, 30 Apr 2019 15:26:43 +0300 Subject: [PATCH 1/2] fix(element): removed WebElement getSize and getLocation for getRect --- lib/element.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/element.ts b/lib/element.ts index 97d1fa15c..4bb837fed 100644 --- a/lib/element.ts +++ b/lib/element.ts @@ -13,8 +13,8 @@ export class WebdriverWebElement {} export interface WebdriverWebElement extends WebElement { [key: string]: any; } let WEB_ELEMENT_FUNCTIONS = [ - 'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getSize', - 'getLocation', 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', + 'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getRect', + 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', 'takeScreenshot' ]; From ea2ef05c90163fac8a5f71c9c3e578ace66fd6ec Mon Sep 17 00:00:00 2001 From: kolodiy Date: Tue, 30 Apr 2019 15:40:09 +0300 Subject: [PATCH 2/2] fix(element): removed WebElement getSize and getLocation for getRect --- lib/element.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/element.ts b/lib/element.ts index 4bb837fed..1fafa5d2a 100644 --- a/lib/element.ts +++ b/lib/element.ts @@ -14,8 +14,7 @@ export interface WebdriverWebElement extends WebElement { [key: string]: any; } let WEB_ELEMENT_FUNCTIONS = [ 'click', 'sendKeys', 'getTagName', 'getCssValue', 'getAttribute', 'getText', 'getRect', - 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', - 'takeScreenshot' + 'isEnabled', 'isSelected', 'submit', 'clear', 'isDisplayed', 'getId', 'takeScreenshot' ]; /**