Telerik Forums
Testing Framework Forum
1 answer
142 views
Hi,

I've got error on VS. When I type "Wait.For", VS displays an error "Unknown method "For" of ArtOfTest.WebAii.Synchronization.Wait".

What should I do?
Velin Koychev
Telerik team
 answered on 20 Nov 2013
3 answers
201 views
In an Application developer has used "KendoUINumerictextbox" and triggering a JS to bind data to some other controls, Have attached the DOM of it.

I'm trying to automate this with Free version of Telerik Testing Framework

The namespace which i need to use is "Telerik.TestingFramework.Controls.KendoUI" to deal with this control. but this library is available in TestStudio which is licensed version, Is there alternative library in free version i.e. Telerik Testing Framework to Automate this?


Appreciate if sample code is shared to trigger JS or call OnChange event with KendoUINumerictextbox , have attached the DOM.

Thanks in Advance,
Naveen
Boyan Boev
Telerik team
 answered on 12 Nov 2013
1 answer
118 views
Hello, 

Could you please take a look on the following issue: Telerik Testing framework cannot work with ComboBox. On code:

Elements.ComboBox_Relation.ToggleDropDown();

Exception is thrown: 
Failure Information: 
~~~~~~~~~~~~~~~
Was not able to match a segment within the path. Expected:canvas , Found:FrameworkElement , Path:/popup:-1:7478741/canvas:0:199809/browserwindowpresenter:1:25639961/popupwindow:0:29433063/grid:0:41527260/contentcontrol:2:34025648/contentpresenter:0:13531482/grid:0:54674477/contentcontrol:1:61729402/contentpresenter:0:31325900/grid:0:13497647/scrollviewer:0:29690827/border:0:37736931/grid:0:41475694/scrollcontentpresenter:0:54369966/contentcontrol:0:4088064/contentpresenter:0:36792583/addpartieswizardview:0:62697791/grid:0:29689838/contentcontrol:0:48941135/contentpresenter:0:22660844/addpartiesselectionview:0:2621005/grid:0:2807653/gridview:3:7768501/border:0:35471519/grid:0:11397820/scrollviewerwithactionbutton:5:55129473/grid:0:22986004/scrollcontentpresenter:6:62206324/gridviewvirtualizingpanel:0:51627108/gridviewrow:0:63849983/border:0:11181736/selectivescrollinggrid:0:16155496/detailspresenter:9:51737965/border:0:57655996/border:0:49141917/contentpresenter:0:39624072/radrowdetailswithbuttons:0:21072335/stackpanel:0:57162270/contentpresenter:0:66741197/border:0:63799869/grid:0:43688924/watermarkedcombobox:7:6599579 
InnerException:
System.Exception: Was not able to match a segment within the path. Expected:canvas , Found:FrameworkElement , Path:/popup:-1:7478741/canvas:0:199809/browserwindowpresenter:1:25639961/popupwindow:0:29433063/grid:0:41527260/contentcontrol:2:34025648/contentpresenter:0:13531482/grid:0:54674477/contentcontrol:1:61729402/contentpresenter:0:31325900/grid:0:13497647/scrollviewer:0:29690827/border:0:37736931/grid:0:41475694/scrollcontentpresenter:0:54369966/contentcontrol:0:4088064/contentpresenter:0:36792583/addpartieswizardview:0:62697791/grid:0:29689838/contentcontrol:0:48941135/contentpresenter:0:22660844/addpartiesselectionview:0:2621005/grid:0:2807653/gridview:3:7768501/border:0:35471519/grid:0:11397820/scrollviewerwithactionbutton:5:55129473/grid:0:22986004/scrollcontentpresenter:6:62206324/gridviewvirtualizingpanel:0:51627108/gridviewrow:0:63849983/border:0:11181736/selectivescrollinggrid:0:16155496/detailspresenter:9:51737965/border:0:57655996/border:0:49141917/contentpresenter:0:39624072/radrowdetailswithbuttons:0:21072335/stackpanel:0:57162270/contentpresenter:0:66741197/border:0:63799869/grid:0:43688924/watermarkedcombobox:7:6599579 
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByReference(AutomationReference reference, Boolean throwIfNotFound)
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.Refresh()
   at Telerik.WebAii.Controls.Xaml.RadComboBox.ToggleDropDown()
   at Telerik.WebAii.Design.Translators.Xaml.ComboBox.ComboToggleDropDownAction.Execute(IApplication appHost)
   at ArtOfTest.WebAii.Design.Extensibility.XamlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
Mario
Telerik team
 answered on 01 Nov 2013
8 answers
191 views
Hi, 
i am running a WPF app and i have a dialog box and i cant find it by code... i managed to find different one but it had just OK button on it.
my code is 

GenericDialog ad = new GenericDialog(ActiveApplication, "Question", true, "Ne", "Set next free Order No.?");
Manager.DialogMonitor.AddDialog(ad);
Manager.DialogMonitor.Start();

//some code until i get to the dialog

ad.WaitUntilHandled(5000);
Manager.DialogMonitor.Stop();

i tryed to replicate it in Testu Studio and there it works only when i set  HandleButtonMethod to ButtonPartialText and i set the test same as in code here.

I did not managed to find whot am i doing differently or wrong.

Could you tell me how to replicate by code the HandleButtonMethod set to ButtonPartialText ?

and it would be great if you could tell me where i could find reference to dialogs currently displayd (atached to main window?)


Velin Koychev
Telerik team
 answered on 29 Oct 2013
1 answer
106 views
Our development team has used Telerik WPF controls for our application under test.  ** GENERATED CODE SUCH AS A UIMAP OR ELEMENT LIST IS PROHIBITED**  Our automation approach is to write a class to identify the outer window and use either GetMatchingControls or GetChildren in an iterative fashion.  One of the Telerik controls involves a Telerik GridViewCell that has an imbedded Calendar control.  The GetChildren method of Microsoft UITest control yields a Microsoft.VisualStudio.TestTools.UITesting.WpfControls.WpfCell for the Telerik GridViewCell.  I can't figure out a way to recast the cell as a  Telerik GridViewCell.  I need to recase because using he GetChildren method of the Telerik GridViewCell represented as a WpfCell is "blind" to the embedded calendar control.
Cody
Telerik team
 answered on 28 Oct 2013
2 answers
96 views
Does the WebAii framework have anything similar to the Selenium's PageFactory class?
Humberto
Top achievements
Rank 1
 answered on 25 Oct 2013
1 answer
189 views

Hi ,

I am using  DragTo method to drag and drop the HTML control ("DragTo(HtmlControl control)"), It is working fine when 
browser is maximized and mouse is not moved. But when browser is minimized or script are running  
remotely or system is locked it is throwing error "threw exception: System.ComponentModel.Win32Exception: SendInput: Failed. Win32Error:"

Please let me know if you have any solution for this.

Thanks,
Kumar


Boyan Boev
Telerik team
 answered on 25 Oct 2013
3 answers
172 views
We have been running automated tests that execute successfully on IE8, FireFox 3.6 / 5, and Chrome (latest version).  The code uses lines of code such as:

//example 1
htmlControl.InvokeEvent(ScriptEventType.OnMouseOver);
 
//example 2
dropDownFilter.SelectByText(option, true);   //where true indicates whether to invoke the OnChange event


This logic works absolutely correctly with respect to eliciting the correct application behavior in the other browsers mentioned above, but not in IE9 (although I can find no mention in documentation or forums that there are any known issues similar to this).

We generally run with the latest released version of WebAii 2011.1.712, but I have also tested this with the latest internal build 2011.2.1007 and there is no improvement in the behavior for this functionality.

Please advise as to whether any known resolutions or work-arounds are available for this, since we are shifting focus towards IE9, and the issue is quite debilitating to our current regression suite.

Thank you. 
Velin Koychev
Telerik team
 answered on 25 Oct 2013
3 answers
130 views
do you have any code samples for coding against radupload in code behind file of test?
Velin Koychev
Telerik team
 answered on 21 Oct 2013
18 answers
675 views
I'm having issues with getting the DOM to refresh when I change pages (Doesn't actually change the page, but I believe it is using Ajax to display the new page). I'm creating automated smoke tests on Outlook Web App (OWA) 2010. When you switch from the Mail --> Calendar I can't get the DOM to refresh.

I have tried all of the refreshes that I could find.
Thread.Sleep(2000);
browser.Manager.ActiveBrowser.WaitForAjax(4000);
browser.Manager.ActiveBrowser.WaitUntilReady();
browser.Manager.ActiveBrowser.AutoDomRefresh = true
browser.Manager.ActiveBrowser.Frames.RefreshAllDomTrees();
browser.Manager.ActiveBrowser.RefreshDomTree();
browser.Manager.ActiveBrowser.WaitForElement(new HtmlFindExpression("id=###"), 4000, false);

It will only find the page elements on the previous page. Any suggestions on what I can do? I have tried both a click and a mouseclick
browser.ActiveBrowser.Find.ById<HtmlControl>("lnkCal").MouseClick();
browser.ActiveBrowser.Find.ById<HtmlControl>("lnkCal").Click();



Boyan Boev
Telerik team
 answered on 17 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?