Telerik Forums
Testing Framework Forum
3 answers
116 views
Hi, 

  I am unable to play my tests via quick execute nor via test view.  Below is my test environment and attached are the screenshots for both test execution methods.

Downloaded and installed WebUI Dev trail version today and -
I am using Windows 7 64-bit + VS2010 (ran as Administrator) + IE8 with settings recommended by Art of Test.
Keaegan
Telerik team
 answered on 08 Nov 2010
1 answer
140 views
Hi,

I have used HtmlInputButton.Click() method to click a button and do a page submit in my application automation. It was working till recently. But now when that statement is executed it clicks the button but the page doesnt get submitted. It kind of hangs and keeps loading the page. The execution of code line seems to be completed because the control actually shifts to the next line of code. But the application submit doesnt complete. When I try the same action in the application manually it works fine.
Is there any bug in artoftest submit functions? Because I have not changed my code.

Thanks
Keaegan
Telerik team
 answered on 05 Nov 2010
1 answer
76 views
Hello,

A custom ASP.NET AJAX component's code is setting an element's disabled property to true.  How do I check this with Web UI Test Studio?  I thought it might set the attribute disabled to disabled, but its set to '', and so it must be evaluatable only through JS code.  How do I perform that check?

Again, it's a custom ASP.NET AJAX component using the ASP.NET AJAX framework, so I have a companion client-side script doing the work.

Thanks,

Brian
Cody
Telerik team
 answered on 01 Nov 2010
1 answer
123 views
I want to find the first occurrence of a image control in the childnodes collection
currently I am just looping through till I find the first one with a tagname of "img"

is there a better way to do this?

also is it possible to cast/convert an element to its htmlobject ex: img element to HtmlImage?
Cody
Telerik team
 answered on 01 Nov 2010
2 answers
93 views
Hello!

I wrote simple test for silverlight sample app http://www.artoftest.com/Samples/SampleApplication.html

The code is:
           Manager.LaunchNewBrowser();
            Manager.ActiveBrowser.NavigateTo("http://www.artoftest.com/Samples/SampleApplication.html");
            Manager.ActiveBrowser.WaitUntilReady();
            System.Threading.Thread.Sleep(1000);
            
            SilverlightApp app = Manager.ActiveBrowser.SilverlightApps()[0];
            Assert.IsNotNull(app);
            TextBox name = app.Find.ByName<TextBox>("name1");
            name.User.TypeText("john", 50);
            Button okButton = app.Find.ByName<Button>("okButton");
            okButton.User.Click();
            FrameworkElement message = app.Find.ByName("message1");
            Assert.IsTrue(message.TextContent.Contains("Selected Date: <date not selected>"));

After I run the test, the assertion is failed, what is wrong in my assertion?

Also, if I set assertion Assert.IsTrue(message.TextContent.Contains("Hi john Selected Date: <date not selected>"));
it is failed, too.

How should I write the assertion to check that all this phrase ("Hi john Selected Date: <date not selected>") is displayed in the framework element?
Keaegan
Telerik team
 answered on 29 Oct 2010
9 answers
135 views
I need to write a test where I have two browsers open at the same time. In really simplified terms, this is what I need to do:

1. Open one browser and create and save a data file (involves drag and drop)
2. Open another browser and open the data from step #1
3. Activate and focus the first browser window
4. Modify the data in the first browser (involves drag and drop)
5. Refresh the second browser and verify that it has the data from step #3.

The first three steps are working fine. The problem is with step #4. It appears that I cannot click or drag an element in the first browser window. When I call "elem.User.Click()" on a FrameworkElement in the first window, it flashes the second browser window, but does nothing on the first browser window, which contains the FrameworkElement.

I understand that the ActiveBrowser property cannot be changed, so the ActiveBrowser is still the second browser instance, but in this case, I am calling the Click() directly on the element in the first browser window.

In my tests, I've verified that if I close the second browser window, step #4 works correctly, but it's hard to run step #5 if the browser is already closed.

Is there any way for me to get this to work? Any chance better multiple browser support is coming? I think I am running the latest version of WebAii (it looks like 2010.2.830.0 in the GAC).

Thanks for your help.
Cody
Telerik team
 answered on 29 Oct 2010
2 answers
130 views
e.g. I want to click the last item so that I can logout,  waiting for your replay, thanks very much!
liu
Top achievements
Rank 1
 answered on 29 Oct 2010
1 answer
75 views
I experience the same problem as Nathan did (it works in IE but not in Firefox):

http://www.artoftest.com/community/forums/webaii-automation-framework/forum-browser-support/firefox-and-iframes-created-and-closed-on-client.aspx


Your answer to Nathan was a work-around that doesn't work for me. Do you have any solution to this now?


Cody
Telerik team
 answered on 28 Oct 2010
1 answer
108 views
Hello,

I have a test plan where we need to test a downloading process. Can telerik automation tool handle this case? if yes how does it deal with browser default dialogues;ie, (download) .

Actually, Telerik stuck at this step and is unable to detect the browser dialogue.

I need to know how can I interact with the browser download dialog (ie, firefox, etc....) like the one shown in the attachment:
1) to know that the dialog indeed is shown and the file is prompted for download
2) to execute the actions on that dialog (Save, Open,Cancel) regardless of the target browser, at least for the known ones (IE, Firefox).
3) to detect the filename to be downloaded if possible.

I have tried many solutions that i found in forums, but none of them seem to work.

Ex :
Manager.Desktop.KeyBoard.KeyPress(Keys.Enter);
 
Window cancelButton = WindowManager.FindWindowRecursively(dialog.Window.Handle, "Cancel", false, 0);
manager.Current.Desktop.Mouse.Click(MouseClickType.LeftClick, cancelButton.Location);

Thanks in advance for your help.
Cody
Telerik team
 answered on 28 Oct 2010
1 answer
80 views
Hello

I've a problem. I use WebAii to test aplication www. Aplication is build from Telerik's controls. My problem relating to RadWindow.
Three textBox are in RadWindow. I use this command:

elem = radWindow1InnerFrame.Find.ById("ctl00_ctl00_cphContent_cphContent_cd1_NameTexBox_text");
 
radWindow1InnerFrame.Actions.SetText(elem, "exampleText ");

In this moment test is finish.
"exampleText" is in Control, I think that all is ok, but when I click in this textBox - "exampleText" disappear.
I can't make next test. Somebody knows what can I do ?
Cody
Telerik team
 answered on 25 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?