Telerik Forums
Testing Framework Forum
1 answer
65 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
145 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
123 views
Ignore, I've figured it out.
automation
Top achievements
Rank 1
 asked on 22 Nov 2010
8 answers
197 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
85 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.2K+ 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
110 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
92 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
129 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
1 answer
63 views
Hi,
I am getting into runtime error when some assert.istrue or assert.isnotnull statements are executed.
The error is "runtime error R6025
- pure virtual function call "

This is a .NET error which is thrown when there is a programming issue. This is the explanation given in microsoft support website
"This error occurs when your application indirectly calls a pure virtual member function in a context where a call to the function is not valid." in the website http://support.microsoft.com/kb/125749.

The thing is, the function that I wrote was working with no issues previously for a long time. All of a sudden I am getting this error. So I am wondering what went wrong.

HtmlForm

 

 

form= ActiveBrowser.Frames[0].Find.ByTagIndex<HtmlForm>("formtag", 0);

 

 

 

Assert.IsTrue(form != null);

I am getting the error in such simple line, is there anything I need to do here?
Thanks

 

Cody
Telerik team
 answered on 08 Nov 2010
Narrow your results
Selected tags
Tags
+9 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?