-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
WebdriverIO Version
8.24.3
Node.js Version
20
Mode
Standalone Mode
Which capabilities are you using?
{
maxInstances: 7,
platformName: 'WINDOWS',
'appium:app': `C:\\Program Files\\DieManufacturing.Dev\\Fr.DieManufacturing.Client.exe`,
'appium:appArguments': '-noCloseConfirmationPopUp -shouldDisplayDiesToTake',
'ms:experimental-webdriver': true,
'ms:waitForAppLaunch': '10',
browserName: `DieManufacturing.Dev`,
}What happened?
Windows element call with an automatid like $("~username") stop working for the method IsDisplayed
What is your expected behavior?
No response
How to reproduce the bug.
Run any available Windows App automation using Appium and try to execute isDisplayed() method for any element by specified locator
Check WDIO logs
Relevant log output
[0-0] 2023-11-29T14:27:27.419Z INFO webdriver: COMMAND $("~username")
[0-0] 2023-11-29T14:27:27.423Z INFO webdriver: COMMAND findElement("accessibility id", "username")
[0-0] 2023-11-29T14:27:27.423Z INFO webdriver: [POST] http://127.0.0.1:4723/session/2a64a8bf-f6cb-4511-8649-d8d950eb3c91/element
[0-0] 2023-11-29T14:27:27.423Z INFO webdriver: DATA { using: 'accessibility id', value: 'username' }
[0-0] 2023-11-29T14:27:28.636Z INFO webdriver: RESULT {
[0-0] error: 'no such element',
[0-0] message: 'An element could not be located on the page using the given search parameters.',
[0-0] stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n' +
[0-0] ' at errorFromW3CJsonCode (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-base-driver\\lib\\protocol\\errors.js:780:25)\n' +
[0-0] ' at ProxyRequestError.getActualError (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-base-driver\\lib\\protocol\\errors.js:663:14)\n' +
[0-0] ' at WADProxy.command (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-base-driver\\lib\\jsonwp-proxy\\proxy.js:272:19)\n' +
[0-0] ' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
[0-0] ' at WinAppDriver.sendCommand (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-windows-driver\\lib\\winappdriver.js:221:12)\n' +
[0-0] ' at WindowsDriver.findElOrEls (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-windows-driver\\lib\\commands\\find.js:11:10)\n' +
[0-0] ' at WindowsDriver.findElOrElsWithProcessing (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-base-driver\\lib\\basedriver\\commands\\find.js:33:12)\n' +
[0-0] ' at WindowsDriver.findElement (C:\\2-gitlab\\end-to-end-tests-wdio\\node_modules\\appium-base-driver\\lib\\basedriver\\commands\\find.js:53:10)'
[0-0] }
[0-0] 2023-11-29T14:27:28.644Z INFO webdriver: RESULT WebdriverIO.Element<undefined>
[0-0] 2023-11-29T14:27:28.644Z INFO webdriver: COMMAND $("~username")
[0-0] 2023-11-29T14:27:28.645Z INFO webdriver: COMMAND findElement("accessibility id", "username")
[0-0] 2023-11-29T14:27:28.645Z INFO webdriver: [POST] http://127.0.0.1:4723/session/2a64a8bf-f6cb-4511-8649-d8d950eb3c91/element
[0-0] 2023-11-29T14:27:28.645Z INFO webdriver: DATA { using: 'accessibility id', value: 'username' }
[0-0] 2023-11-29T14:27:29.402Z INFO webdriver: RESULT {
[0-0] 'element-6066-11e4-a52e-4f735466cecf': '42.267144.4.5.1.28',
[0-0] ELEMENT: '42.267144.4.5.1.28'
[0-0] }
[0-0] 2023-11-29T14:27:29.405Z INFO webdriver: RESULT WebdriverIO.Element<42.267144.4.5.1.28>
[0-0] 2023-11-29T14:27:29.405Z INFO webdriver: COMMAND executeScript(<fn>, <object>)
[0-0] 2023-11-29T14:27:29.406Z INFO webdriver: [POST] http://127.0.0.1:4723/session/2a64a8bf-f6cb-4511-8649-d8d950eb3c91/execute
[0-0] 2023-11-29T14:27:29.406Z INFO webdriver: DATA {
[0-0] script: 'isElementDisplayed(...) [8102 bytes]',
[0-0] args: [
[0-0] {
[0-0] 'element-6066-11e4-a52e-4f735466cecf': '42.267144.4.5.1.28',
[0-0] ELEMENT: '42.267144.4.5.1.28'
[0-0] }
[0-0] ]
[0-0] }
[0-0] 2023-11-29T14:27:29.421Z DEBUG webdriver: request failed due to response error: unknown method
[0-0] 2023-11-29T14:27:29.421Z WARN webdriver: Request failed with status 405 due to Method is not implemented
[0-0] 2023-11-29T14:27:29.421Z INFO webdriver: Retrying 1/1Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
Reactions are currently unavailable