Telerik Forums
Testing Framework Forum
11 answers
152 views
Hi,

  I have some Silverlight UI Automation tests running correctly on my local machine, however, on the build machine, I keep run into "ArtOfTest.WebAii.Silverlight.ApplicationNotReadyException" as it navigates to the url properly but failed to execute any steps within Silverlight.

  I have attached the .trx file.

  Any ideas?  


Cody
Telerik team
 answered on 26 Nov 2010
1 answer
79 views
Hi there.
I have a datagrid that doesn't seem to be updating after a row has been removed dynamically.  This is incredibly frustrating.  I saw that this is an existing problem in some of the other post so I was wondering when there will be a fix for this?  

I wonder if this is a problem when there are multiple grids on the same page.  This was working fine on a page that only had one grid.  

Is there anyway to get around this problem?

Thanks.
Cody
Telerik team
 answered on 24 Nov 2010
1 answer
171 views
After reorganising my UnitTest project I now receive the message:

"Unable to load WebAii Test Template. Please make sure templates are loaded." when trying to convert my .aii test into a MSUnit test.

The conversion succeeds, but changes the test to a .vb file as opposed to a .cs file, as is specified in the Settings.aiis file in the same folder as the .aii test I am converting.

Where is the templates location set and how can I change it to allow the project to find the settings again?

Tom
Keaegan
Telerik team
 answered on 24 Nov 2010
0 answers
161 views
Ignore, I've figured it out.
automation
Top achievements
Rank 1
 asked on 22 Nov 2010
8 answers
210 views
Hello,

unfortunately the Download Dialogues aren't handled proper within my Application. Here is a code snippet:

Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\");
            Manager myManager = new Manager(mySettings);
            myManager.Start();
            myManager.LaunchNewBrowser();
            myManager.ActiveBrowser.NavigateTo("http://www.c-c-center.de/nuetzliches/exceluebungen/index.htm");
            myManager.ActiveBrowser.Find.ByContent<HtmlControl>("x:Kunden.xls").Download(false,DownloadOption.Save,"C:\\test.xls",5000);
With this, the Firefox open dialogue pops up for a short moment and then disappears. After five seconds I get the TimeoutException. In the log file stands this line:
"Unexpected dialog encountered. Closing the dialog, and halting execution".

I've also tried this code with the same result:

Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\");
Manager myManager = new Manager(mySettings);
myManager.Start();
myManager.LaunchNewBrowser();
Element elem = myManager.ActiveBrowser.Find.ByContent("x:Kunden.xls");
string saveLocation = "C:\\test.xls";
DownloadDialogsHandler handler = new DownloadDialogsHandler(myManager.ActiveBrowser, DialogButton.SAVE, saveLocation, myManager.Desktop);
myManager.ActiveBrowser.Actions.Click(elem);
handler.WaitUntilHandled(5000);

After calling "handler.WaitUntilHandled" the Open Dialogue disappears and after five seconds I get the TimeOutException.

The same problem occurs with Safari. I've also checked my Firefox configuration and configured it this way, but it didn't help:
http://www.artoftest.com/support/webaii/topicsindex.aspx?topic=configurefirefox2x3x

Do you have any idea what's wrong? I've attached my Firefox Open Dialogue.

I would really appreciate your help.

Many thanks
Thomas
Cody
Telerik team
 answered on 17 Nov 2010
2 answers
99 views
I've been looking for a list of changes or additions with this version but haven't been able to locate a list.  I was able to find the version notes link which points to http://www.telerik.com/versionnotes.aspx?id=2340 however at the moment the page is blank.  Anyone know where the version notes might be found?
Mike
Top achievements
Rank 1
 answered on 15 Nov 2010
1 answer
1.3K+ views
Hi guys,
Is there a good way to check the position of an element?  e.g. if I have two buttons on a page how can I find out which button is on the left and which one is on the right? or top and bottom?

So far I have found that whichever element is on the left (and I think created first in the visual tree) has a lower AbsoluteTagIndex.  But that really only says which element came first.  So I'm wondering if there's a better way.  

I would love to hear any suggestions about this.  

Thanks.
Stoich
Telerik team
 answered on 15 Nov 2010
1 answer
121 views
Hi!

I was unable to find any examples of converting code that uses FindParam to HtmlFindExpression.  I make extensive use if FindParam but with the latest revision 2010.3.1109 I found that it's being depricated.

Here is an example of how I use FindParam:

 

FindParam findParam = new FindParam("input", 3, "type=checkbox");

 


However, HtmlFindExpression doesn't allow the use if the tagname or index like FindParam.  Can you point me to examples of converting ot the new way?

Thanks,

George
George McCarroll
Top achievements
Rank 1
 answered on 12 Nov 2010
7 answers
101 views

Hi,


Two weeks ago I started to use WebAii for Silverlight Automation testing. This application is developed in SL 4 and it contains even some custom controls (ie. masek text boxes). Until now I didn't find a solution to identify and type and value in them. Those controls are not derived from text box controls , are delivered directly from controls lib so:

I identified them in this way:

  • Control textBox = app.FindName<Control>("textBoxName");

 I tried to fill them in different ways without any result: 

  • textBox.User.TypeText("1234as", 500, true);
  • textBox.SetProperty(new AutomationProperty("Text", typeof(string)), "1234as");


The problems is that the masked text boxes are still empty even if the property was set correctly (I verified)

I used the second statement: "textBox.SetProperty ..." for a normal text box and it has been filled normally.

Could you please help me to solve this issue ?  

Cody
Telerik team
 answered on 09 Nov 2010
4 answers
144 views
Pls refer to the attached doc. 

I have used the Microsoft Primary Interoperability Assemblies 2005.exe
to fix this. Strangely enough the problem resurfaced again.
 
Pls advice. 

Ta.
SD
Top achievements
Rank 1
 answered on 09 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?