segment-boneyard/nightmare

Screenshot tooltip

Open

#1,134 创建于 2017年5月12日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (19,507 star) (1,076 fork)batch import
Feature RequestHelp Wantedupstream

描述

Hi,

I want to capture screenshot of element tooltip, however, I have tried with both .mouseover and the plugin nightmare-real-mouse (realMouseover) but it doesn't work. The screenshot doesn't have tooltip. I wonder if the screenshot function itself can't capture the tooltip from Electron or those functions doesn't work. I tried to use realClick from the plugin, it works but realMouseover still can see the tooltip.

I'm trying to use window.webContents.sendInputEnvent but not success so far.

Any ideas on how to implement this requirement?

Thanks,

贡献者指南