Telerik Forums
Testing Framework Forum
8 answers
164 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
85 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
68 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
149 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
139 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
104 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
577 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
1 answer
283 views
Hi!

My automation tests made with WebAii work fine on my PC. I am trying to execute them on a different PC and get an error.

ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
   at mshtml.HTMLDocumentClass.IHTMLDocument3_get_documentElement()
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_9b8eedd9-e654-4b7e-aa20-b07eb0f72df9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80029C4A): Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))
   at mshtml.HTMLDocumentClass.IHTMLDocument3_get_documentElement()
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
 
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.RefreshDomTree()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.InternalNavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(Uri uri)
at ArtOfTest.WebAii.Core.Browser.NavigateTo(String url)
at Utilities.WebAii.Navigate(Area area, String url) in WebAii.cs: line 238
at Forms.UserUI.PageNavigator.Navigate(String url) in PageNavigator.cs: line 89
at Forms.UserUI.UserArea.Navigate(String url) in UserArea.cs: line 59
at Tests.Mixed.Test.TestTest() in Test.cs: line 86
--TearDown
at NUnit.Framework.TestContext.ResultAdapter.get_State()
at Tests.BaseTest.TearDownBase() in BaseTest.cs: line 80

I tried to uninstall / install libraries. It does not help.

Configuration of two PC seems to look identical: WinXP SP3, IE 8.0.6001.18702

Here is the GAC info regarding WebAii libraries:

  ArtOfTest.InternetExplorer, Version=2011.2.1413.0, Culture=neutral, PublicKeyToken=5339893a7cefe4d6, processorArchitecture=MSIL
  ArtOfTest.ShDocVw, Version=2011.2.1413.0, Culture=neutral, PublicKeyToken=2c87ddee179cbcea, processorArchitecture=MSIL
  ArtOfTest.WebAii, Version=2011.2.1413.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c, processorArchitecture=MSIL

Any ideas what may cause the error?

I have found a post simple-ie-8-navigateto-fails  with similar error. The solution is clear installation on clear PC. Unfortunately, it will not work in my case.

Every little helps.

Thanks.
Velin Koychev
Telerik team
 answered on 17 Oct 2013
4 answers
181 views
Hi All,

In our application, we have a dialog which pops up when a user tries to close the browser without logging out using the official link. We seems to have no control over it and you can't see this in DOm. It just locks the browser control and give you two options :

Leave this Page

Stay on this page


how should I go about handling this use-case, if suppose I intend to click on "Leave this Page"

Thanks in advance!

Ivaylo
Telerik team
 answered on 14 Oct 2013
1 answer
118 views
Hi,

We have developed few charts bar,line, scattered line charts using Kendo UI charts. I have downloaded Telerik testing framework 2013.01 and try to automate those Kendo Charts using VSUnitTest.

Could you please provide some samples to verify the charts (either image comparison or directly verifying the bar/line series) using testing framework.


Please find the attachment.
Thank you..

Velin Koychev
Telerik team
 answered on 11 Oct 2013
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?