Closed Shiou-Ju closed 9 months ago
https://github.com/puppeteer/puppeteer/issues/2486#issuecomment-602116047
這篇回覆提到 chrome.contextMenus.onClicked
先嘗試使用 puppeteer 實作
如有必要也可以用 Playwright
https://www.npmjs.com/package/playwright
並參考這篇
Context Menu in 119.0.6045.105 (正式版本) (arm64)
seperate line
seperate line
發現模擬鍵盤往下按的功能只能 scroll page,不能跟 context menu 聯動。
https://github.com/asweigart/pyautogui
或許考慮使用這個套件
但這是 Python 的套件或許會讓專案變複雜
https://github.com/puppeteer/puppeteer/issues/1575
根據這一篇,似乎 puppeteer 只能透過模擬鍵盤的操作來選取
試著實作