getgauge / taiko

A node.js library for testing modern web applications
https://taiko.dev
MIT License
3.57k stars 453 forks source link

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

Closed ddeevi closed 1 month ago

ddeevi commented 2 years ago

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

saikrishna321 commented 2 years ago

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

saikrishna321 commented 2 years ago

Try this taiko --plugin taiko-diagnostics