Telerik Forums
Testing Framework Forum
2 answers
91 views
Hi,

I cannot submit a bug because I'm not a license holder, so I post here.

The following code:
var b = Manager.Current.ActiveBrowser;
b.NavigateTo("http://localhost/2.html");
var input = b.Find.ById<HtmlInputFile>("file1");
input.Upload(@"c:\inetpub\wwwroot\2.html", 15000);

no longer works in IE9 & FF4 (build 1607).

Stack:
System.TimeoutException: Timed out waiting '15000' msec. for dialog to be handled '1'
at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlInputFile.Upload(String filePath, Int32 uploadTimeout)

Alexey Ivanov
Top achievements
Rank 1
 answered on 15 Apr 2011
3 answers
122 views

Hi,

I am running Win 7, IE 9 (ver.: 9.0.8112.16421), WebAii 2.0
In VS 2010 I have a short test project that simply:
- runs a browser and navigates to our SL app
- finds it
- gets its VisualTree
- and does some clicking and checking

The problem is, that the app seeking is too slow. It takes from 35 to 50 seconds.
    EDIT: It is not the seeking, but the copying of the application to "SilverLightApp slapp" object that takes too long
I tried to navigate to your demos site and it took "only" 5 seconds to find your demo app.
The time between two clicks (loops) is long too (10 - 15 seconds).
While debugging in VS, opening the found VisualTree or any sub-branch is slow too.

I tried to clean my cache before every test / after every test - didn't help.
I tried to run our app from a server instead of localhost - didn't help
I tried the other approach (ActiveBrowser.SilverlightApps()[hostId]) - didn't help
I tried Firefox, Chrome - didn't help

I have no idea what can be wrong.
Something in the app settings?
Something in browser / internet settings?
Or is our SL app so HUGE? (it is a bit, as you say, "complex")
The main problem may be, that the app works a lot with graphics, therefore it may be too huge.

here is the code widget:

Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(url);
SilverlightApp slapp = ActiveBrowser.SilverlightApps()[0]; // 40 - 50 seconds
  
VisualTree vt = slapp.VisualTree;
  
FrameworkElement menu = vt.Find.ByName("Menu");
StackPanel btnStack = menu.Find.ByName<StackPanel>("StackPanel1");
for(int i = 5; i >= 0; i--)
{
            FrameworkElement el = btnStack.Children[i];
            el.User.Click(MouseClickType.LeftClick, 0, 0,
            ArtOfTest.Common.OffsetReference.AbsoluteCenter); // apx. 15 seconds between clicks
}

Thx
empee
Top achievements
Rank 1
 answered on 15 Apr 2011
3 answers
169 views
Hi All,

Please help me out. I 've been struggling with this issue for weeks.

Trying on Win7 64bits + IE8  64 and WinXP + IE8, found the same problem.

This command: myManager.LaunchNewBrowser(); fires the browser launched but could not get handle with exception throw as
-----
{"Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it."}
------

Have try with some tips from this forum as change Platform Target to x86, remove/reinstall WebAii 2010.3,

Please if someone could give me any else ideas. Would really appreciate your helps/comments.

Below is my detail code

namespace ExManager
{
    public class ExecutorManager : BaseTest
    {
        public void init()
        {
            Settings mySettings = new Settings(BrowserType.InternetExplorer, @"D:\log\"); 
            mySettings.EnableSilverlight = true;
            
            Manager myManager = new Manager(mySettings);
             
            myManager.Start();
            myManager.LaunchNewBrowser();
            myManager.ActiveBrowser.NavigateTo("http://localhost:49958/UIAutomationTestPage.aspx");
             
             
            myManager.ActiveBrowser.WaitUntilReady();
             
            Global.Variables.slapp = myManager.ActiveBrowser.SilverlightApps()[0];
        }


        public void cln()
        {
            this.CleanUp();
        }


        public void execute()
        {
            init();
            SLClickHideButton.HideButton.DemoSL();
            cln();
        }
    }
}
San
Top achievements
Rank 1
 answered on 15 Apr 2011
5 answers
148 views
I'm curious about the company's plans towards IE9. I've already got people bugging me to test against the beta...
Konstantin Petkov
Telerik team
 answered on 09 Apr 2011
1 answer
91 views
Hello,

I just had to format my machine and when I went to install Firefox i was only able to download 4.0.  When I try and use 4.0 with the latest version of WebAii it fails to run any tests.  I was wondering when there was going to be support for FireFox 4.0?

Thanks,
Chris
Anthony
Telerik team
 answered on 07 Apr 2011
2 answers
112 views
hi,
I am trying to automate a mobile site in windows platform (Win 7). The test works fine for IE & FireFox, but when I tried to run it in safari, it always got "Aborted" in the middle of the scripts and leave no error message.

1)Webaii automation framework version in use is 2010.3.1108
2)The safari installed is 5.04(7533.20.27), WebUI Test Studio  automation extension is installed and safari configured as in the requirement
3) Windows 7 professional x64,  Microsoft Silverlight Version: 4.0.60129.0 installed
4) I was told the mobile site using webkit to rending pages for sarafi browser.
5) I have tried to use browser.WaitUntilReady();or even System.Threading.Thread.Sleep(waittime); to slow the sscript. but still not able to run script against safari successfully. and I tried with try & catch to catch error.

My question is, does webaii support safari browser for mobile site in windows platform? how can we catch error instead of Aborted result? Thanks!
Chris
Top achievements
Rank 1
 answered on 07 Apr 2011
5 answers
124 views
Hello everybody,

Is there any way I can create a handler for an event of a javascript object that is not associated with an element of the DOM?

In all the examples I found, the handlers are always associated with an event of an element, for example the click of a button, I want to associate an event handler to a javascript object in a memory.

Thanks!
Fred
Cody
Telerik team
 answered on 07 Apr 2011
1 answer
119 views
I download and installed the last version of WebAii Automation Framework (Version: 2010.3 1421 ) in order to evaluate the tool. All the components I got after several tries, are samples code and a quick link to this forum. I cant see the WebUii test form to add into my Visual Studio C# project, not even when I added the reference manually, which by the way, are not being referenced automtically as described in the installation guide.

I had installed WebUi dev edition once, I performed a POC with the trial version a year ago, I uninstalled this expired trial after tried with WebAii but again, I only get the sample codes, no executable at all, just samples.

Thanks in advance!
Cody
Telerik team
 answered on 07 Apr 2011
3 answers
179 views
Hiya,

We have a listbox we're trying to automate in WebAii.
The ListBox is bound to a collection via its ItemsSource, and its items are templated to show an image and a checkbox. We want to be able to automate checking and unchecking the checkbox.

It looks like I'm unable to do this - I'm able to find the ListBox, but its Items collection contains an ItemCollection of strings.
listBox.Find.AllByType<ListBoxItem>();
returns an empty list.
The listbox's Children collection is empty.

Am I able to do what I'm trying to do?
I found the following link which hints that I'm unable to (but that post didn't say that they're using ItemTemplating): http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/silverlight-obtaining-listbox-items.aspx

If this isn't possible, will it be available in a future release?

Thanks,

Gary
Stoich
Telerik team
 answered on 30 Mar 2011
1 answer
68 views
Windows Server 2008 Enterprise, Visual Studio 2008, WebUI Test Studio Developer 2010_3_1421 Trial, InfoPath 2007, SharePoint 2007.

Downloaded the trial.  Watched the getting started video.  Recorded a simple test:

1) Navigate to the applicaiton page.
2) Enter a date, make a choice from a dropdown.

When I re-run the recording, the dropdown choice doesn't work.  That is, there is no dropdown choice.

Is there a known problem with InfoPath?

\cbf
Cody
Telerik team
 answered on 28 Mar 2011
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?