Skip to content
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

Logs endpoint operation #207

Open
KazuCocoa opened this issue Dec 28, 2022 · 1 comment
Open

Logs endpoint operation #207

KazuCocoa opened this issue Dec 28, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@KazuCocoa
Copy link
Contributor

Background: https://stackoverflow.com/questions/54403756/missing-logs-for-tizen-application-sdb-shows-nothing

Maybe sdb dlog stuff does not work on TV devices to collect device logs, instead, I wonder if we can collect something logs via chromedriver's log endpoints:

https://github.com/appium/appium/blob/master/packages/base-driver/lib/protocol/routes.js#L716-L730

  // Selenium 4 clients
  '/session/:sessionId/se/log': {
    POST: {command: 'getLog', payloadParams: {required: ['type']}},
  },
  // Selenium 4 clients
  '/session/:sessionId/se/log/types': {
    GET: {command: 'getLogTypes'},
  },
  // mjsonwire, appium clients
  '/session/:sessionId/log': {
    POST: {command: 'getLog', payloadParams: {required: ['type']}},
  },
  // mjsonwire, appium clients
  '/session/:sessionId/log/types': {
    GET: {command: 'getLogTypes'},
  },

Not sure if these log endpoint can return meaning full log data, but maybe its better than nothing

@KazuCocoa KazuCocoa added the enhancement New feature or request label Dec 28, 2022
@jlipps
Copy link
Collaborator

jlipps commented Dec 29, 2022

these commands should already be proxied to chromedriver. can we just try a client script to see if the log commands return anything?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants