【发布时间】:2020-04-30 10:19:34
【问题描述】:
使用空手道 - geckodriver (Firefox) 我需要在特定的浏览器窗口大小中运行它。根据我尝试过的文档(JS配置文件):
karate.configure('driver', { type: 'geckodriver', executable: 'geckodriver', start: false, port: 4444, addOptions: ['windows-size=320,200'] });
或
karate.configure('driver', { type: 'geckodriver', executable: 'geckodriver', start: false, port: 4444, addOptions: ['--windows-size=320,200'] });
未引发错误,但窗口大小不是 320,200。 可能需要对配置进行一些小的更改。
感谢您的帮助。
【问题讨论】: