Telerik Forums
Testing Framework Forum
5 answers
167 views

Hello,

I am having a problem with Manager.ActiveBrowser.Frames.ById() returns null intermittently. The conditions are as follows:

  var resultsFrameExpression = new HtmlFindExpression("tagname=iframe", "id=searchResultsFrame");        

  browser.WaitForElement(resultsFrameExpression, 60000, false); // Successfully returns

  browser.RefreshDomTree();

-!!->  resultFrame = browser.Manager.ActiveBrowser.Frames.ById("searchResultsFrame");

Most of the time, resultFrame comes back with a valid result. Sometimes it comes back as null. If there is even a 10 second delay before calling RefreshDomTree() and trying again, it still occurs with about the same frequency. (My assumption was that there may have been a timing issue between WaitForElement()'s successful return before being able to access the element that it successfully claims exists, but this is not the case either.

Any insight as to what I am doing wrong here would be appreciated.

 

Thanks for your help

 

Nikolay Petrov
Telerik team
 answered on 03 May 2017
1 answer
208 views

Hi, 

Do you have some documentation how to run WPF application and use Specflow?

    class dTrackingTTF :BaseWpfTest
    {
     
        [Given(@"I run the application UK Risk Analyzer")]
        public void GivenIRunTheApplicationUKRiskAnalyzer()
        {

            Manager.LaunchNewApplication(@"C:\Desktop.exe");
            Manager.ActiveApplication.Manager.ActiveApplication.MainWindow.Find.ByTextContent("Daily monitoring").User.Click();         
       }

 

I get an error: 

System.NullReferenceException: Object reference not set to an instance of an object.

 

Regards,

Peter

Elena
Telerik team
 answered on 17 Apr 2017
6 answers
293 views

Hi,
 
I have written a set of test which get exceuted using webii and VSTS (C# .net). I need to implement he following in code

1. The test should be repetable : I must be able to execute the same test n number of times (where n indictaes the number of run -can be preset)
2. Diffrent input for each run: I should be able to access a excel file from which i can have the inputs that are required for running the test e.g data values.

I went through this link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/data-driven-testing/add-a-data-source.aspx#Excel  however wanted to implement the same in code.

Help appreciated...

Thanks!!
 
Kavita
Top achievements
Rank 1
 answered on 12 Apr 2017
2 answers
114 views

Hi, 

Is it possible to generate Page Object model pattern for WPF application?

Can you please write or give me one example?

 

Regards,

Peter

Elena
Telerik team
 answered on 11 Apr 2017
3 answers
126 views

Hi, 

I need to get a value from this Chart. Can somebody tell me about that how can I get a value?var rCC =

riskAnalyzer.Manager.ActiveApplication.MainWindow.Find.ByName("RadCartesianChart");

Elena
Telerik team
 answered on 06 Apr 2017
3 answers
123 views

Hi, 
I would like to ask how can I find RadCartesianChart on Visual Studio 2015 + Coded UI Test. 

http://www.telerik.com/teststudio/visual-studio-testing-plugin-benefits - This is same example for Grid. 

I try his but I can't have that option Find.ById

RadCartesianChart radCartesianChart = Find.

Regards,

Peter

Elena
Telerik team
 answered on 06 Apr 2017
1 answer
157 views

Hi,

Dialog Monitor code for handling windows authentication dialog is not working on Win 10 (both IE and Edge). It hangs on logon dialog and not proceed further.

It is working fine on all other browsers.

Code to handle Logon Dialog:

manager.DialogMonitor.AddDialog(LogonDialog.CreateLogonDialog(BrowserManager.MyManager.ActiveBrowser, "" + Domain + @"\" + UserName, @"" + Password, DialogButton.OK));

manager.DialogMonitor.Start();

manager.ActiveBrowser.NavigateTo(@"" + URL);            

See the attached screen. It hangs on this popup screen. We are using 2017.1.207.0 version of telerik testing framework.

-Raju

Nikolay Petrov
Telerik team
 answered on 06 Apr 2017
3 answers
114 views
Hi there,

The following code fails in IE9 in our Web app tests. We are using the latest WebAii version.

Manager.Desktop.KeyBoard.KeyPress(Keys.Delete, 100);

Manager.Desktop.KeyBoard.KeyPress(Keys.F2, 100);
Manager.Desktop.KeyBoard.KeyPress(Keys.Enter, 100);

Nothing actually happens i.e. the delete key, F2 or Enter key is not being pressed.

Please give a solution on how to resolve this issue?

Thanks,
Sri

 

 

 

 

 

 

 

 

 

 

 

 

 


Nikolay Petrov
Telerik team
 answered on 03 Apr 2017
3 answers
216 views

In the web app I'm testing, there is a button which appears multiple times on a page, attached to dynamic objects. There is no identifier for each unique instance. I want to click a specific instance of it, but the identifier for this button is in a sibling section of the HTML.

Simplified model:

<div class = "whole">
      <div class = "top">
             <p title = "Identifier"></p>

      </div>
      <div class = "bottom">
             <button>ButtonIWantToClick</b>

      </div>

</div>

Is there a way to use nested finds to determine which button to click, and if not, what might be the best way to tackle it in code?

I've done some digging in the forums to see if there was a solution to this specific issue. I'm new to Telerik, so here's to hoping that there's a reasonably simple way of achieving what I want to do.

Thanks in advance.

Nikolay Petrov
Telerik team
 answered on 15 Mar 2017
1 answer
88 views

We are installing Telerik Testing framework on our controlled environment on top of our controlled environment for testing.

Would like to understand, on installing the Telerik testing framework does it impact any OS settings or IE settings

 

Elena
Telerik team
 answered on 02 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?