taiko icon indicating copy to clipboard operation
taiko copied to clipboard

Getting error while using the https://www.npmjs.com/package/taiko-diagnostics

Open ddeevi opened this issue 3 years ago • 2 comments

I have installed Taiko and able to execute the openBrowser() .API' as well. However after installing the "npm install taiko-diagnostics --save" from https://www.npmjs.com/package/taiko-diagnostics, when using the startTracing(), getting error "Uncaught startTracing is not defined "

To Reproduce Steps (or script) to reproduce the behavior:

  1. Go to command prompt
  2. Type npx Taiko
  3. Type openBrowser()
  4. Type startTracing()
  5. getting error
const { diagnostics, openBrowser, closeBrowser } = require('taiko');                          
(async () => {                                                                                                                                    
try {                                                                                                                                             
await openBrowser();                                                                                                                      
} catch (error) {                                                                                                                                 
console.error(error);                                                                                                                     
} finally {                                                                                                                                       
await closeBrowser();                                                                                                                     }                                                                                                                                         })(); 

Logs

Screenshots image

Taiko Version Screenshot 2022-05-11 125208

Version: 1.3.2 (Chromium: 100.0.4874.0) RELEASE

ddeevi avatar May 11 '22 07:05 ddeevi

Have you enabled the plug-in when starting taiko repl?

saikrishna321 avatar May 17 '22 15:05 saikrishna321

Try this taiko --plugin taiko-diagnostics

saikrishna321 avatar May 17 '22 15:05 saikrishna321