[undefined Android #0-0] SyntaxError: Unexpected token ‘T’, “The URL ‘/”… is not valid JSON
[undefined Android #0-0] SyntaxError: Unexpected token ‘T’, “The URL ‘/”… is not valid JSON
[undefined Android #0-0] at parseJSONFromBytes (node:internal/deps/undici/undici:5472:19)
[undefined Android #0-0] at successSteps (node:internal/deps/undici/undici:5454:27)
[undefined Android #0-0] at fullyReadBody (node:internal/deps/undici/undici:4381:9)
[undefined Android #0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[undefined Android #0-0] at async consumeBody (node:internal/deps/undici/undici:5463:7)
Im getting above error when try to do a scroll as below.
Given(‘I navigate to the product search screen’, async () => {
await driver
.action(‘pointer’)
.move({ x: 250, y: 600 })
.down()
.pause(100)
.move({ duration: 500, x: 250, y: 150 })
.up()
.perform();
});
Can some one help me to fix the error.
I got the code from https://github.com/webdriverio/webdriverio/discussions/10994
Source: Read More