Telerik Forums
Testing Framework Forum
1 answer
319 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
217 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
155 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
3 answers
195 views
// Launch the page
ActiveBrowser.NavigateTo("http://localhost/myapp/object/display/ObjRef/%2F%2FMainSite%2F5100.MT1");

A decoded the URL string, "http://localhost/myapp/object/display/ObjRef///MainSite/5100.MT1", was sent to the browser and resulted in an error.

Thanks.
Yan
Velin Koychev
Telerik team
 answered on 09 Oct 2013
1 answer
113 views
I am trying to write a simple script, and I got stuck on launching my WPF application because of a null reference exception. I have included the test project. I am using Visual Studio 2010.
Velin Koychev
Telerik team
 answered on 02 Oct 2013
1 answer
129 views
Hi,
Friday I must update the server with many Windows Update.
Now my test not work...towards the end of this error message appears (attached)

Boyan Boev
Telerik team
 answered on 02 Oct 2013
1 answer
287 views
Hi,

I am creating new tests for the Product. I need help to start with reading the data from CSV where I am intending to use list which grows dynamically according to rows and columns in the file. Do you have any template code which I can use for the start.

Thanks
Amar
Velin Koychev
Telerik team
 answered on 01 Oct 2013
8 answers
137 views
Hi,
Urgently need a solution...
As i need to play a video which is bundled in iframe and this iframe does not contain any id or partial id only it has [height], [width] and [src].

Can you please assist.

Thanks in advance


Regards
Sairam
Boyan Boev
Telerik team
 answered on 25 Sep 2013
1 answer
96 views
Hi Telerik Team,

How to get Silverlight control instance from Existing Browser page. For example, I have already opened a browser page which is having Silverlight content in it, how to get the instance of this content for automation.

For the new instance you have showed as below

Settings.Current.Web.EnableSilverlight = true;
06. 
07.// Launch a browser instance
08.Manager.LaunchNewBrowser();
09. 
10.// Navigate to the page
11.ActiveBrowser.NavigateTo("http://localhost:5697/SilverlightApplication1Web/SilverlightApplication1TestPage.html");
12. 
13.// Get an instance of our Silverlight app.
14.SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
15. 
16.// Set the text of the text box
17.app.FindName<TextBox>("myName").Text = "Telerik";

Similarly I want to do this for existing browser page.
Boyan Boev
Telerik team
 answered on 24 Sep 2013
3 answers
133 views
                Settings mySettings = new Settings();
            mySettings.Web.DefaultBrowser = BrowserType.FireFox;
            Manager myManager = new Manager(mySettings);
            myManager.Start();
            myManager.LaunchNewBrowser();
            myManager.ActiveBrowser.NavigateTo("http://www.gmail.com");
            System.Threading.Thread.Sleep(8000);
            HtmlFindExpression expression = new HtmlFindExpression("Name = Email", "id = Email");
            HtmlInputEmail emal = myManager.ActiveBrowser.Find.ByExpression<HtmlInputEmail>(expression);
Not able to identify the email text box in gmail.com, please let me know if anything I am missing in my code, thanks!
Velin Koychev
Telerik team
 answered on 18 Sep 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?