Search code examples
typescriptvisual-studio-codewebdriver-io

before(){ browser.maximizeWindow(); } in wdio.conf.ts.It shows can not find any browser


I am currently working on WEBDRIVER IO Using TYPESCRIPT in VS code.I am using this before(){ browser.maximizeWindow(); } in wdio.conf.ts.It shows can not find any browser. It maximises the browser on run time. But in code it still shows can not find any browser. Not sure where the problem lies. Below is the screenshot of tsconfig.file enter image description here


Solution

  • You haven't added "./wdio.conf.ts" to include array in tsconfig.json