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

WatiN with RadWindow

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Shirish Lokhande
Top achievements
Rank 1
Shirish Lokhande asked on 31 May 2010, 10:25 AM

Hi,

 

We were using WatiN testing tool for our application.

 

We were facing problem while attaching RadWindow as popup to parent IE object.

 

Code-

 

IE iepopup_1 = IE.AttachTo<IE>(Find.ByUrl(“url”));

iepopup_1.TextField("TextBox1").TypeText("test");

iepopup_1.Close(); 

 

 

IE’s AttachTo method not able to find the give url and getting following error –

 

Could not find an IE window matching constraint: Attribute 'href' equals uri ‘url’. Search expired after '30' seconds.

 

But same code worked fine for form with normal windows control.

 

 

Please guide us.

 

Regards,

Shirish

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 31 May 2010, 11:16 AM
Hello Shirish,

I'm sorry but we are not familiar with WatiN in general. However, I just looked at your code and I bet the method Find.ByUrl requires the exact popup URL to attach to and you are passing an useless argument, thus the error.

With WebUI Test Studio (the product these forums are all about) attaching to RadWindow comes out-of-the-box. During recording you will get notified about the new popup so that you can add the necessary test step to your test. This is really powerful and I suggest you give our test automation solution a try.

Regards,
Konstantin Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Shirish Lokhande
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or