Search code examples
karate

how to set highlightDuration in karate-config.js


I have added below for highlight duration:

karate.configure('driver', { type: 'geckodriver', executable: 'executable', showDriverLog: true, highlightDuration: 1000 });

But actually element is being highlighted for 3000 ms (which is by default). What am i doing wrong?


Solution

  • Make sure you add highlight: true also.

    karate.configure('driver', { type: 'geckodriver', executable: 'executable', showDriverLog: true, highlight: true, highlightDuration: 1000 });