如何在karate-config.js中设置highlightDuration

问题描述 投票:0回答:1

我在下面添加了突出显示持续时间:

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

但实际上元素突出显示了 3000 毫秒(默认情况下)。我做错了什么?

karate
1个回答
0
投票

请确保还添加

highlight: true

karate.configure('driver', { type: 'geckodriver', executable: 'executable', showDriverLog: true, highlight: true, highlightDuration: 1000 });
© www.soinside.com 2019 - 2024. All rights reserved.