Closed phamnhuvu-dev closed 3 years ago
There is no client side plugin yet implemented for the fake-plugin. But here is how you could implement one yourself in webdriverio: https://webdriver.io/docs/customcommands#add-more-webdriver-commands
e.g. something like (I have not tested this)
import { command } from 'webdriver'
driver.addCommand('getFakeSessionData', command('GET', '/session/:sessionId/fake_data', {
command: 'getFakeSessionData',
description: 'command from the fake plugin',
ref: '',
variables: [],
parameters: []
}))
then you can use it in your test code:
await driver.getFakeSessionData()
Oh, sorry I misunderstood your question. Basically there is a bug that will be fixed in https://github.com/appium/appium-plugins/pull/24
yea, the error seems the proxy related.
I am using
webdriverio
for the client side.I don't know how to make the right client call to the plugin.
Client logs:
Server logs: