【问题】:
Serenity 2.0.71(对应Chrome v77)版本中以往Chrome 禁用消息栏的配置已经失效,排查很久才知道是配置项变更导致
【解决】:
- 找到框架的配置文件 “serenity.conf” 或者“serenity.properties”;
- 选择其中一个配置文件,复制如下配置到对应配置文件中:
serenity.conf
chrome_experimental_options {excludeSwitches = "enable-automation"useAutomationExtension = false
}
serenity.properties:
chrome_experimental_options.useAutomationExtension=false
chrome_experimental_options.excludeSwitches=[enable-automation]