This is a migrated thread and some comments may be shown as answers.

BrowserCapture Delay

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Okami
Top achievements
Rank 1
Okami asked on 05 Dec 2013, 05:02 PM
Is there anyway to delay the BrowserCapture function a few ms without having to put a execution delay in front of every browser capture?

1 Answer, 1 is accepted

Sort by
0
Rodney
Telerik team
answered on 10 Dec 2013, 04:50 PM
Hi Ming,

By design, Test Studio doesn't include a property that allows you to automatically add execution delays to  Browser or Desktop Captures. As an alternative, you can add a coded step that inserts an execution delay immediately before a capture. Here’s what the code would look like: 

// Wait for '250' msec.
System.Threading.Thread.Sleep(250);
// Capture 'Browser' state.
Log.CaptureBrowser(ActiveBrowser, "Snapshot");


Let me know if this helps. 


Regards,
Rodney
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Okami
Top achievements
Rank 1
Answers by
Rodney
Telerik team
Share this question
or