Skip to content

Can not preform actions. Bad endpoint call #5067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
avner-solomon opened this issue Nov 16, 2017 · 3 comments
Closed

Can not preform actions. Bad endpoint call #5067

avner-solomon opened this issue Nov 16, 2017 · 3 comments
Labels
C-nodejs JavaScript Bindings

Comments

@avner-solomon
Copy link

avner-solomon commented Nov 16, 2017

System

  • gekodriver: 0.19.1
  • Platform: Windows Server 2012 R2
  • Firefox: 57
  • Selenium: 3.7.1 with Node.js (selenium-webdriver)

creating a set of actions sends commands to /keys endpoint instead of actions /actions

Testcase

await driver.actions().
keyDown(webdriver.Key.CONTROL).
keyDown(webdriver.Key.ALT).
sendKeys('m').
keyUp(webdriver.Key.CONTROL).
keyUp(webdriver.Key.ALT).
perform()

Stacktrace

{ UnknownCommandError: POST /session/e18dd3e1-5bd4-4090-91e9-a752f40b9824/keys did not match a known command
at Object.throwDecodedError (C:\eater\node_modules\selenium-webdriver\lib\error.js:514:15)
at parseHttpResponse (C:\eater\node_modules\selenium-webdriver\lib\http.js:519:13)
at doSend.then.response (C:\eater\node_modules\selenium-webdriver\lib\http.js:441:30)
at
at process.tickCallback (internal/process/next_tick.js:188:7)
From: Task: sendKeys
at thenableWebDriverProxy.schedule (C:\eater\node_modules\selenium-webdriver\lib\webdriver.js:807:17)
at actions.map.action (C:\eater\node_modules\selenium-webdriver\lib\actions.js:124:23)
at Array.map ()
at C:\eater\node_modules\selenium-webdriver\lib\actions.js:123:29
at TaskQueue.execute
(C:\eater\node_modules\selenium-webdriver\lib\promise.js:3084:14)
at TaskQueue.executeNext_ (C:\eater\node_modules\selenium-webdriver\lib\promise.js:3067:27)
at asyncRun (C:\eater\node_modules\selenium-webdriver\lib\promise.js:2974:25)
at C:\eater\node_modules\selenium-webdriver\lib\promise.js:668:7
at
at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: ActionSequence.perform
at ActionSequence.perform (C:\eater\node_modules\selenium-webdriver\lib\actions.js:122:33)
at C:\eater\selenium.js:55:5
at
at process._tickCallback (internal/process/next_tick.js:188:7)
name: 'UnknownCommandError',
remoteStacktrace: 'stack backtrace:\n 0: 0x47e934 - \n 1: 0x47f0a3 - \n 2: 0x442649 - \n 3: 0x43c3f0 - \n 4: 0x40530f - \n 5: 0x40d01a - \n 6: 0x6bef19 - \n 7: 0x420b85 - \n 8: 0x6b96e0 - \n 9: 0x7ff871c413d2 - BaseThreadInitThunk' }

@avner-solomon avner-solomon changed the title Can not prefor actions. Bad endpoint call Can not preform actions. Bad endpoint call Nov 16, 2017
@p0deje p0deje added the C-nodejs JavaScript Bindings label Nov 17, 2017
@avner-solomon
Copy link
Author

avner-solomon commented Nov 17, 2017

By reading the changelog am I right to assume this is fixed in v4.0.0-dev (of the npm package and if so what's the ETA)?

@MagicPoulp
Copy link

On HEAD (what would become v4.0), it seems to me that it is fixed for firefox but it becomes broken for chrome.

I proposed in a new issue to document how users should proceed.
#5222

@jleyba
Copy link
Contributor

jleyba commented Jan 8, 2018

Closing issue. This is a duplicate of #4564

@jleyba jleyba closed this as completed Jan 8, 2018
@lock lock bot locked and limited conversation to collaborators Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-nodejs JavaScript Bindings
Projects
None yet
Development

No branches or pull requests

4 participants