Telerik Forums
Testing Framework Forum
4 answers
469 views
Hi,

I try to use Testing Framework for WPF application.

But the problem is Login page in our application use HTML in WPF.

When I start WPF application from my code the login page is opening and I can find elements related only WPF elements .

But I can't find Web elements inside control WebBrowser, where located my fields Username and Pass and buttons.

System.NullReferenceException: 'Object reference not set to an instance of an object.'
ArtOfTest.WebAii.Core.Manager.ActiveBrowser.get returned null.



Please, could you tell me, is it possible to use testing framework with both functionalities - WPF + HTML?

If it is possible, can you provide an example of how I can find elements related WPF and HTML on the same Page.
Elena
Telerik team
 answered on 17 Mar 2020
8 answers
557 views
Hi,

My application is a WPF application.
I need to test an export of a file and save it on the computer.
How can I support the Save Dialog in order to save taht file?

Thanks
Dafna
Plamen Mitrev
Telerik team
 answered on 24 Feb 2020
3 answers
99 views

Hi, 

I am running the silverlight tests from server, where VS is not installed, It is not launching the application url on windows 10 machines. Locally it works fine. Could you please help me what could be the reasons for this. 

Darshana
Top achievements
Rank 1
 answered on 24 Feb 2020
5 answers
155 views

Hello!

After upgrading to Telerki testing framework 2018.3.1004.5 DownloadDialogsHandler doesn't handles save file dialog correctly in Internet Explorer 11 (Windows 10 x64).

Download file popup info appears, but browser's save dialog remains closed.

But when you open browser dialog manually (selecting "Save as" with mouse) DownloadDialogsHandler starts typing saving path.

Previous version of Telerki testing framework 2018.1.0418.2 works fine.

Browser was configured according recommendations https://docs.telerik.com/teststudio/getting-started/configure-your-browser/internet-explorer


Plamen Mitrev
Telerik team
 answered on 17 Feb 2020
3 answers
99 views

I have the webpage with kendoGrid with attached sourcecode

I can not able to identify the cell with the below code. 

 KendoGridDataCell element = driver.ActiveBrowser.Find.ByExpression<KendoGridDataCell>("class=~k-widget", "class=~k-grid", "GroupIndex=0", "|", "TagIndex=td:0", "Tagname=td");

Can anyone help on this.? Thanks

Plamen Mitrev
Telerik team
 answered on 29 Jan 2020
5 answers
140 views

Hi,

we need to create a system, that is a WebService. For every WebService call that we receive, we need to instantiate a new browser, make a GET request to some external system and read the data from returned HTML.

According to other threads on the forum, Testing Framework is not thread-safe.

But is it possible to use it in thread-safe manner? If yes, how it should be synchronized? I am worried that even if we implement some synchronization in our code, internals of the framework will anyway fail in multi-thread environment?

 

Regards,

Przemek

Plamen Mitrev
Telerik team
 answered on 27 Jan 2020
13 answers
638 views
When I LaunchNewBrowser I get a TimeoutException.  This is a first.  I downloaded the latest version and I get the same results.  I just upgraded to Window 7 so not sure if it's win 7 issue.  Here is my code:

 ArtOfTest.WebAii.Core.Settings ieSettings = new ArtOfTest.WebAii.Core.Settings(ArtOfTest.WebAii.Core.BrowserType.InternetExplorer, String.Format(@"{0}\log\WebAii.txt", Directory.GetCurrentDirectory())); 
                if (_MyMgr == null
                { 
                    _MyMgr = new ArtOfTest.WebAii.Core.Manager(ieSettings); 
                    _MyMgr.Start(); 
                } 
 
                _MyMgr.LaunchNewBrowser(); 
                //_MyMgr.ActiveBrowser.Closing += new EventHandler(ActiveBrowser_Closing); 
                _MyMgr.ActiveBrowser.NavigateTo(url); 

Never gets to NavigateTo method.  The IE does launch and ready to surf. 

Using VS 2010.

Any ideas?

Thanks

Rick
Darshana
Top achievements
Rank 1
 answered on 27 Jan 2020
3 answers
516 views

Hi

The Testing framework doesn't seem to be able to select an item in a KendoDropDownList that is not visible at runtime, though the item exists in the drop down when scrolling down to the bottom of the list.

 

Attached is a project containing two tests (Success and Failure tests), the "Success" test is selecting items at the top of that list which are visible and the "Failure" test is selecting items towards the bottom of the list that are not visible unless you scroll down.

 

Many thanks.

Elena
Telerik team
 answered on 12 Dec 2019
1 answer
81 views

I have a big project with Telerik.Web.UI(2013.1.417.40) and EntityFramework 4.0.

I conver the project to EntityFramework 6.3

The project start but the project before start  waits 90 seconds  and does nothing at this time. blank page on the browser and the browser is working but I don't know what it is doing. In debug only the message appears 6 times:

Exception generated: 'System.TypeInitializationException' in Telerik.Web.UI.dll

Then after 90 seconds that the browser remains blank, the project starts correctly and everything seems to work correctly.

why telerik that issues exceptions then it starts regularly after 90 seconds?

 

 

 

Eyup
Telerik team
 answered on 09 Dec 2019
3 answers
507 views

Hi,

 

I'm using VS 2019 Enterprise with Telerik Testing Framework. I'm using examples provided by your support document part 'WPF UI Automation'. I have added ArtOfTest.WebAii in the reference and created a test. But when running the test I keep getting the System.NullReferenceException. Can you help me out?

 

Greets

Plamen Mitrev
Telerik team
 answered on 06 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
MIS
Top achievements
Rank 1
Ross
Top achievements
Rank 1
Marcin
Top achievements
Rank 1
Iron
Iron
Sean
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?