vscode-mocha-test-adapter icon indicating copy to clipboard operation
vscode-mocha-test-adapter copied to clipboard

Webdriver IO: browser is not defined

Open oldmankit opened this issue 3 years ago • 3 comments

I'm using Webdriver IO for a project. It works fine running tests using VS Code. The command it uses to start the tests is wdio wdio.conf.js, and in that configuration file it says to use mocha, and defines which test spec files to test with.

As soon as I open the vscode-mocha-test-adapter extension, it says "ReferenceError: browser is not defined".

Well, browser is defined in the webdriverio node module.

I understand it might not be possible to use this VS Code extension to make my life easier running mocha tests with webdriver IO, but if anyone has any advice, I'd much appreciate it.

oldmankit avatar Oct 23 '21 05:10 oldmankit

Hi @oldmankit I am in the same boat, did you manage to get a fix or workaround for this?

RobertKielty avatar Jan 05 '22 13:01 RobertKielty

Nope! I gave up.

oldmankit avatar Jan 05 '22 14:01 oldmankit

I'm having this same issue, has anyone looked into this issue at all?

@hbenl

OtherwiseJunk avatar Aug 16 '22 12:08 OtherwiseJunk