Skip to content

Commit

Permalink
设置为简体中文
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-roy committed Nov 28, 2024
1 parent c79b23f commit 47f5b00
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ private static WebDriver initBrowser() {
options.addArguments("--headless");
// 在某些 Linux 环境下需要
options.addArguments("--no-sandbox");
// 设置为简体中文
options.addArguments("--lang=zh-CN");
// 解决共享内存问题
options.addArguments("--disable-dev-shm-usage");
options.addArguments("--window-size=1920,1080");
Expand Down

0 comments on commit 47f5b00

Please sign in to comment.