1

我注意到,當在Chrome中運行我的量角器E2E測試時,無論何時規格失敗,我的記者試圖截取屏幕截圖,Chrome都會以下面的錯誤日誌崩潰。沒有失敗的測試工作正常。 IE和FF的失敗工作正常。Chrome使用量角器/茉莉截圖記者在屏幕截圖崩潰

[1026/090128:ERROR:process_reader_win.cc(114)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022) 
[1026/090128:ERROR:exception_snapshot_win.cc(87)] thread ID 46316 not found in process 
[1026/090128:WARNING:crash_report_exception_handler.cc(56)] ProcessSnapshotWin::Initialize failed 
[1026/093428:ERROR:process_reader_win.cc(114)] NtOpenThread: {Access Denied} A process has requested access to an object, but has not been granted those access rights. (0xc0000022) 

我的想法是,更新已改變自動屏幕截圖的訪問權限?或類似的東西。我的問題是如何解決這個問題,或者更改特權以允許截圖。

我已經嘗試在我的量角器配置中添加諸如禁用擴展和禁用網絡安全但迄今爲止沒有運氣的chromeOptions。使用

工具:

量角器版本:4.0.9
量角器,jasmine2-截圖 - 記者:0.3.2
NPM版本:3.10.9
節點版本:4.4.3
Chrome版本:54.0.2840.71
ChromeDriver版本:2.24
硒獨立:2.53.1

回答