Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Is it possible to add option to take current screenshot? #31

Closed
sreenadhsr opened this issue Apr 12, 2015 · 1 comment
Closed

Is it possible to add option to take current screenshot? #31

sreenadhsr opened this issue Apr 12, 2015 · 1 comment
Assignees

Comments

@sreenadhsr
Copy link

Selenium allows taking full page screenshot. It will be nice if SWD can give this option in the GUI.
I tried to execute following code in WebDriver Playground and it always throws exception.

driver.GetScreenshot().SaveAsFile("c:/test.png", ImageFormat.Png)
2015-04-12 17:32:33.4139 ERROR 'ImageFormat' is undefined Microsoft.ClearScript.ScriptEngineException: 'ImageFormat' is undefined
   at Microsoft.ClearScript.ScriptEngine.ThrowScriptError(IScriptEngineException scriptError)
   at Microsoft.ClearScript.Windows.WindowsScriptEngine.ThrowScriptError(Exception exception)
   at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass14.<ScriptInvoke>b__13()
   at Microsoft.ClearScript.ScriptEngine.ScriptInvoke(Action action)
   …
   at Microsoft.ClearScript.ScriptEngine.Evaluate(String code)
   at SwdPageRecorder.UI.PlayGroundPresenter.RunScript(String code)
   at SwdPageRecorder.UI.PlayGroundView.btnRunScript_Click(Object sender, EventArgs e)
   …
   at Microsoft.ClearScript.ScriptEngine.Evaluate(String documentName, String code)
   at Microsoft.ClearScript.ScriptEngine.Evaluate(String code)
   at SwdPageRecorder.UI.PlayGroundPresenter.RunScript(String code)
   at SwdPageRecorder.UI.PlayGroundView.btnRunScript_Click(Object sender, EventArgs e)
  …
dzharii added a commit that referenced this issue Apr 15, 2015
…possible to add option to take current screenshot? (#31). Bumped new version
@dzharii dzharii self-assigned this Apr 15, 2015
@dzharii
Copy link
Owner

dzharii commented Apr 15, 2015

@sreenadhsr, thank you for your feature request & bug report.
The feature is implemented in the release SWD PageRecorder 14 APR 2015 v2.45
https://github.com/dzharii/swd-recorder/releases

The bug with driver.GetScreenshot().SaveAsFile("c:/test.png", ImageFormat.Png) is now fixed

@dzharii dzharii closed this as completed Apr 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants