[英]Why is this Robot code to take a screenshot not working when the computer is locked?
[英]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.