-
Couldn't load subscription status.
- Fork 189
Closed
Labels
Description
Description
When using Appium.WebDriver 4.0.0.2-beta the Displayed property throws a WebDriverException.
Environment
- Appium server version or git revision if you use some shapshot: 1.9.1
- Desktop OS/version used to run Appium if necessary: Win 10
- Node.js version: 10.10.0
- Mobile platform/version under test: Android
- Real device or emulator/simulator: Emulator, API 26 (8.0)
Details
Using the Displayed property throws the exceptions below with 4.0.0.2-beta, this still worked with 4.0.0.1-beta. The Enabled property works as excepted.
Used package versions:
Appium.WebDriver: 4.0.0.2-beta Castle.Core: 4.3.1 Newtonsoft.Json: 11.0.2 Selenium.WebDriver: 3.14.0 Selenium.Support: 3.14.0 Code To Reproduce Issue [ Good To Have ]
driver.FindElementByAccessibilityId("myButton").Displayed Exception stacktraces
'driver.FindElementByAccessibilityId("button").Displayed' threw an exception of type 'OpenQA.Selenium.WebDriverException' Data: {System.Collections.ListDictionaryInternal} HResult: -2146233088 HelpLink: null InnerException: null Message: "Method is not implemented" Source: "WebDriver" StackTrace: " at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)\r\n at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)\r\n at OpenQA.Selenium.Appium.AppiumDriver`1.Execute(String driverCommandToExecute, Dictionary`2 parameters)\r\n at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary`2 parameters)\r\n at OpenQA.Selenium.Remote.RemoteWebElement.get_Displayed()\r\n at OpenQA.Selenium.Appium.AppiumWebElement.<get_Displayed>b__10_0()\r\n at OpenQA.Selenium.Appium.AppiumWebElement.CacheValue(String key, Func`1 getter)\r\n at OpenQA.Selenium.Appium.AppiumWebElement.get_Displayed()" TargetSite: {Void UnpackAndThrowOnError(OpenQA.Selenium.Remote.Response)} Link to Appium logs
[debug] [W3C] Calling AppiumDriver.execute() with args: ["return (function(){return function(){var k=this;function l(a){return void 0!==a}function m(a){return\"string\"==typeof a}function aa(a,b){a=a.split(\".\");var c=k;a[0]in c||!c.execScript||c.execScript(\"var \"+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&l(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}}\nfunction ba(a){var b=typeof a;if(\"object\"==b)if(a){if(a instanceof Array)return\"array\";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if(\"[object Window]\"==c)return\"object\";if(\"[object Array]\"==c||\"number\"==typeof a.length&&\"undefined\"!=typeof a.splice&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"splice\"))return\"array\";if(\"[object Function]\"==c||\"undefined\"!=typeof a.call&&\"undefined\"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable(\"call\"))return\"function\"}else return\"null\";\nelse if(\"function\"==b&&\"undefined\"==typeof a.call)return\"object\";return b}function ca(a,b,c){return a.call.apply(a.b... [debug] [W3C] Encountered internal error running command: NotImplementedError: Method is not implemented [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0$ (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\lib\commands\execute.js:12:9) [debug] [W3C] at tryCatch (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40) [debug] [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22) [debug] [W3C] at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21) [debug] [W3C] at invoke (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37) [debug] [W3C] at enqueueResult (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:185:17) [debug] [W3C] at new Promise (<anonymous>) [debug] [W3C] at new F (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\core-js\library\modules\$.export.js:30:36) [debug] [W3C] at AsyncIterator.enqueue (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:184:12) [debug] [W3C] at AsyncIterator.prototype.(anonymous function) [as next] (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:100:21) [debug] [W3C] at Object.runtime.async (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:209:12) [debug] [W3C] at AndroidUiautomator2Driver.callee$0$0 [as execute] (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-android-driver\build\lib\commands\execute.js:20:30) [debug] [W3C] at C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\driver.js:296:26 [debug] [W3C] at tryCatcher (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\util.js:26:23) [debug] [W3C] at Promise._settlePromiseFromHandler (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:510:31) [debug] [W3C] at Promise._settlePromiseAt (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:584:18) [debug] [W3C] at Promise._settlePromiseAtPostResolution (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\promise.js:248:10) [debug] [W3C] at Async._drainQueue (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:128:12) [debug] [W3C] at Async._drainQueues (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:133:10) [debug] [W3C] at Immediate.Async.drainQueues (C:\Users\myUser\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\node_modules\bluebird\js\main\async.js:15:14) [debug] [W3C] at runCallback (timers.js:694:18) [debug] [W3C] at tryOnImmediate (timers.js:665:5) [debug] [W3C] at processImmediate (timers.js:647:5) [HTTP] <-- POST /wd/hub/session/92ea8af1-4a1c-40d1-8645-d58f9e528017/execute/sync 405 26 ms - 3510 [HTTP]