Posted 04 Jan 2011 Link to this post
Posted 05 Jan 2011 Link to this post
Unfortunately, you will need to change your code. Our tool will need the code setup in C# or VB.net in order to work with our Framework. I apologize that we do not support MsHTML for coding your steps within WebAii. Please let us know if you have further inquiry on this.
Posted 06 Jan 2011 Link to this post
Sure, here's a working sample test:
[TestMethod]
public
void
CaptureImage()
{
// Load our webpage in the browser
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(
"http://www.aspenview.org/do/"
);
// Locate the Happy New Year image
HtmlImage img = Find.ByExpression<HtmlImage>(
"src=/do/images/stories/happy-new-year-wallpaper-020.jpg"
,
"tagname=img"
// Make sure the image is 100% visible in the browser window
img.ScrollToVisible(ScrollToVisibleType.ElementBottomAtWindowBottom);
// Take snapshots of the image, the entire browser window, and the desktop
img.Capture(@
"C:\Temp\CapturedImages"
"HappyNewYear.bmp"
Log.CaptureBrowser(ActiveBrowser);
Log.CaptureDesktop();
}