簡體   English   中英

鎖定機器后,Webdriver屏幕截圖API無法獲取屏幕截圖

[英]Webdriver Screenshot API does not take screenshot when machine is locked

我遇到了webdriver 2.3.x API的問題。

1.Webdriver is not able to capture screenshots on IE when machine is locked. 
code I am using for screenshot is: 

File scrFile = ((TakesScreenshot)wd).getScreenshotAs(OutputType.FILE);
FileUtils.copyFile(scrFile, new File(<URL>));

2.Even, APIs like mouseover (using actions), click(), SwitchTo() does not work if machine gets locked while execution is in progress.

由於這些問題,我們陷入困境。 請提出解決此問題的解決方案。

不幸的是,這就是IE的工作方式。 我想您在FF / Chrome上沒有這樣的問題,對嗎?
這與webdriver無關,但與瀏覽器本身有關。 檢查潛在的解決方案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM