Telerik Forums
Testing Framework Forum
4 answers
113 views

Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it.
System.TimeoutException: Wait for condition has timed out
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
at ArtOfTest.Common.WaitSync.For(Predicate`1 predicate, T target, Int32 timeout)
at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.GetIEFrameFromProcess(Process process)

 

Internet explorer opens and stay blank and finally test failed.

Same telerik automation code is working on one Win10 machine but not working on another win10 machine.

Solution tried - calibrating IE, building on x86 platform

Wesley
Top achievements
Rank 1
 answered on 29 Apr 2019
14 answers
291 views
Hello,
I've been cruising the forum for some time now looking for a solution to the problem I'm facing. I see many threads similar to the issue I'm seeing but I have yet to find a solution in those threads that solve the problem.

I've exported the tests to run independently from Test Studio using nunit in the console. I've gotten the test to kick off and run filling out a login form up to the point of clicking the Login button. I can see the button, verify its clickable, highlight it, etc. However, when I go to click it using User.Click(), nothing happens. I've enabled annotations and it shows the click action occurring, yet the button is not clicked

I've tried clicking it through FindName:
this.App.FindName<Button>("PART_LoginButton").User.Click();

I've tried through the exported method from Test Studio:
Pages.<PageName>.SilverlightApp.PARTLoginButtonButton.User.Click();
 Neither of those two methods work. In addition, I've also ensured that settings.Web.EnableSilverlight = true, tried refreshing the dom tree, clicking the silverlight app bounds to ensure that its selected, double clicking (single clicking twice), refreshing the visual trees, and even sleeping before clicking the button to ensure no AJAX type code is affecting the button.

Here is the source code of the button itself:
<button Name="PART_LoginButton" AutomationId="PART_LoginButton" Uid="65158171">
  <grid Uid="34157240">
    <border Name="Background" Uid="57177053">
      <textblock Name="textBlock" AutomationId="textBlock" Uid="44831437">Login</textblock>
    </border>
  </grid>
</button>

Any assistance to get this code clicking that button would be greatly appreciated!

Thank you,
Tim Harrison

Edit: Added button source code.
Ivaylo
Telerik team
 answered on 26 Apr 2019
5 answers
103 views
I am building helper methods to reuse the code.   I wanted to user Generic object reference in helper methods so that user can specify whether object is of  HtmlInputSubmit or HtmlInputText.

To elaborate my requirement, i would writing below code in helper method

                T _WebElement = _Manager.ActiveBrowser.Find.ById<T>(locator);

While invoking helper method, i would write like

            TelerikElement<HtmlControl> searchCriteria = new TelerikElement<HtmlControl>(wDriver);
            searchCriteria.FindWebElement(LocateBy.Name, "q").SetValue("Telerik Testing Framework");

Error:
There is no boxing conversion or type parameter conversion form T to ArtofTest.WebAii.Controls.Control.

Is there any workaround to implement this logic.
Elena
Telerik team
 answered on 16 Apr 2019
5 answers
119 views

How to Compile ‘NUnit Extention.dll’ the sources against your version of NUnit

I am planning to use ‘Unit Testing Web Extensions with NUnit’ , I have gone through the user guide Link http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/getting-started/using-nunit.aspx and I have installed NUnit(2.5.7) and downloaded the ‘NUnit Extention surce file

But how to Compile the sources against version of NUnit. Please guide me the steps how to do the compilation and I am using Visual Studio 2012.

Elena
Telerik team
 answered on 02 Apr 2019
7 answers
193 views

Hi,

I'd like to test a WPF app that uses Telerik UI for WPF. I downloaded the Testing Framework. But I can't seem to click a RadRibbonButton by calling "button.User.Click()" method, even though the "button" variable seems to correctly point to the button:

using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.TestTemplates;
using Telerik.WebAii.Controls.Xaml.Wpf;

namespace UnitTestProject1
{
    public class MainWindow : XamlElementContainer
    {
        public MainWindow(VisualFind find)
            : base(find)
        {
        }

        public void ClickSave()
        {
            const string Path =
                "XamlPath=/Grid[0]/Grid[0]/Grid[0]/AdornerDecorator[0]/ContentPresenter[0]/RadRibbonView[0]/Grid[0]/Grid[0]/ContentPresenter[0]/Grid[0]/RibbonScrollViewer[0]/Grid[0]/ContentPresenter[0]/ItemsPresenter[0]/RibbonGroupsPanel[0]/RadRibbonGroup[0]/Grid[0]/GroupChrome[0]/Border[0]/Grid[0]/ContentPresenter[0]/ItemsPresenter[0]/RibbonButtonsPanel[0]/RadRibbonButton[1]";
            var button = this.Get<RadRibbonButton>(Path);
            button.User.Click();
        }
    }
}


I attach a sample project that demonstrate this behavior.

I'd appreciate any suggestions.

Thanks,

Tetsu

Plamen Mitrev
Telerik team
 answered on 20 Mar 2019
18 answers
432 views
Hi,

I have added our DLL to a Test Studio project thru Show->Scripts options.
When I got back to the coded step and tried to add a 'using' statment to include the above DLL,
it was not showing (All the other MS dll and Teleriks show).
The DLL I'm trying to add has been generated using VSE 2008 and contains various test methods written
with webaii methods.

Please let me know how it's suppose to be done.

Ta.
Elena
Telerik team
 answered on 15 Mar 2019
5 answers
254 views
Hi,

is there a way to force WebAii to start chrome in Incognito mode?

Motivation: we use chrome as the default browser and before we starting the gui tests with chrome we reset the browsers cache and cookies to have a vanilla browser. this of course removes all our personal settings.
if we could start the browser in incognito mode, the browser would be "vanilla" per definition and only the telerik extension would be enabled and therefor no other extensions could influence the test execution and expected results.

thanks for advance,
Bernhard
Daniel Djambov
Telerik team
 answered on 13 Mar 2019
1 answer
173 views

Hi,

I have such an code:

 

var dropDownWorkflow = SelectTable_Column(0);

dropDownWorkflow.SelectByText((string)parameter_in["workflowValue"], true);

where

internal HtmlSelect SelectTable_Column(int index)

{     

var idString = string.Format("id=?RulesTable_Row{0}TemplateCol", index);    return myBrowser.WaitForElement(new HtmlFindExpression(idString), TestDefinitions.WAIT_TIMEOUT).As<HtmlSelect>();

}

This is the exception:

ArtOfTest.WebAii.Exceptions.ExecuteCommandException : ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at mshtml.HTMLSelectElementClass.IHTMLElement3_FireEvent(String bstrEventName, Object& pvarEventObject)
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, String data)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeEvent',Target:'ElementId (tagName: 'select',occurrenceIndex: '0')',Data:'onchange--@@--null',ClientId:'Client_3d56ac5e-800e-4e93-bba8-e10af338144e',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at mshtml.HTMLSelectElementClass.IHTMLElement3_FireEvent(String bstrEventName, Object& pvarEventObject)
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeEvent(IHTMLElement target, String data)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.SelectByText(String text, Boolean invokeOnChangeEvent)

 

What can be the reason and how can I solve this problem.

Thanks.

 

Elena
Telerik team
 answered on 07 Mar 2019
1 answer
116 views

Hi,

When using Chrome with the NavigatTo method, if the target url causes the browser to display a certificate error/warning the NavigateTo method times out and throws an exception. Which causes you to be unable to use any current work around to bypass the error screen and navigate to your intended URL. If I manually navigate past the certificate error page, the NavigatTo method then releases the browser object.

I am using the most recent version of the test framework 2019.2 and the most recent version of the Telerik extension 2019.1. The only work around I have is a try catch finally but the timeout is too long for our intended purposes.

 

Thanks!

Daniel Djambov
Telerik team
 answered on 04 Mar 2019
6 answers
136 views

Hello,

I have seen previous posts about this but they are quite old. So, I preferred to create a new one just in case.

I had a test with Telerik  ArtOfTest.WebAii version 2017.3.1206.0. It has been working perfectly fine for months.
Last week I had to do a minor change to something unrelated to this issue and I decided to upgrade to version 2018.3.1004.

The browser being used is IE 11.2125 (English version)

            handler.WaitUntilHandled(35000);
After doing this upgrade the Download Dialog handler stop working as it used to do. So, I got the timeout exception because the Dialog is no longer getting handled.

Here I put the code but I haven't modified this. I just put it if there is something extra that I should be doing:


                DownloadDialogsHandler handler = new DownloadDialogsHandler(manager.ActiveBrowser, DialogButton.SAVE, atestadoSavedLocation, manager.Desktop);

            //Trigger the dialog.
            manager.DialogMonitor.Start();

            clickDescargar.Invoke(); //triggers the download

            handler.WaitUntilHandled(35000);


Could you give me any hint on how to sort this out?
Regards,
Sebastian
Plamen Mitrev
Telerik team
 answered on 01 Mar 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?