var element = app.FindName(
"element"
);
element.Wait.ForExists();
var waitForElementATask = Task.Factory.StartNew(() => WaitForElement(
"elementA"
));
var waitForElementBTask = Task.Factory.StartNew(() => WaitForElement(
"elementB"
));
Task.WaitAny(waitForElementATask ,waitForElementBTask);
private
void
WaitForElement(
string
name)
{
var element = app.FindName(name);
element.Wait.ForExists();
}
Dim
justTheDates = wholeString.Substring(InStr(wholeString,
"Created On"
),InStr(wholeString,
"EditBack"
))
desktop desk = Manager.Desktop;
desk.KeyBoard.KeyDown(System.Windows.Forms.Keys.alt);
desk.KeyBoard.KeyPress(System.Windows.Forms.Keys.F12);
I have an out of browser Silverlight application. When I open the application (from desktop) by double clicking, it runs fine. In Test Studio, the Out of Browser application opens just fine when I need to record a test. The problem occurs when I run the test. Test Studio opens the application. Everything looks good. However, I receive a strange error message. The error message states, “An error occurred while trying to make a request to URI ‘https://127.0.01/MyServiceSL/SomethingService.svc’. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. …” The inner exception looks like the following:
{System.Security.SecurityException ---> System.Security.SecurityException: Security error.
at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
Do you have any idea what is wrong? How do I get Test Studio to run this test and logon to this application?