Hi Team,
We met one issue, for click copy button and get clip text, with telerik 2024, chrome could work well, but chrome headless couldn't work well, the text is always empty.
The code we use is like this::
Clipboard.Clear();
copybutton.click();
Clipboard.GetText();
Can you give some suggestion about this?'
Thanks very much,
Jun
Hi Team,
We are reviewing test results for chromeheadless, we found below exception for some cases run together, which can be reproduced. But they are good for chrome, seems only chromeheadless issue.
The exception is like below, I couldn't find any clue for it, can you give me any suggestion about why such exception occur, so that we can try to fix it.
System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Server stack trace: at System.ServiceModel.Channels.CommunicationObject.ThrowIfDisposedOrNotOpen() at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Telerik.TestingFramework.Hosts.Common.IBrowserLauncher.LaunchBrowser(ILauncherOptions launchOptions) at ArtOfTest.WebAii.Messaging.Process.HostsProxy.LaunchBrowser(ILauncherOptions launcherOptions) at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchCDPManagedBrowser(String startUrl, BrowserType browserType, Boolean windowVisible) at ArtOfTest.WebAii.BrowserSpecialized.Chrome.ChromeActions.LaunchNewCDPManagedBrowser(Manager manager, Boolean windowVisible) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser() at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 173 at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177 at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177 at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177 at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177 at WebAii.Framework.Context.WebTest.LaunchNewBrowser(Int32 attempts) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 177 at WebAii.Framework.Context.WebTest.get_ActiveBrowser() in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\Context\WebTest.cs:line 156 at WebAii.Framework.WebAiiSupport.get_ActiveBrowser() in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\WebAiiAssemblyContext.cs:line 171 at WebAii.Framework.WebAiiResultSupplementer.SupplementResult(Result result) in c:\jenkins\workspace\AutomatedTests Build\WebAii.Framework\WebAiiResultSupplementer.cs:line 50 OnSpecificationStart
Thanks,
Jun
Hi Team,
I am trying chromeheadless now, most of the UI operations could work, but for keybord, which do not work, like below:
Manager.Current.Desktop.KeyBoard.KeyDown(Keys.Alt);
Manager.Current.Desktop.KeyBoard.KeyPress(Keys.End);
Manager.Current.Desktop.KeyBoard.KeyUp(Keys.Alt);
It's not always broken, when I use it in my case, the same code work for chrome, but broken for chromeheadless, i don't know how to debug the issue. Can you please help to check for us?
Message:
ExecuteCommand failed!
InError set by the client. Client Error:
Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter
BrowserCommand (Type:'Action',Info:'NotSet',Action:'RealKeyboardAction',Target:'null',Data:'keyDown#$TS$#LMenu',ClientId:'1748F9AF024B6615B325B7310DF45C36',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter')
InnerException: none.
Stack Trace:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter
BrowserCommand (Type:'Action',Info:'NotSet',Action:'RealKeyboardAction',Target:'null',Data:'keyDown#$TS$#LMenu',ClientId:'1748F9AF024B6615B325B7310DF45C36',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Protocol error (Input.dispatchKeyEvent): Invalid 'text' parameter')
InnerException: none.
Browser.ExecuteCommandInternal(BrowserCommand request)
Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
HeadlessKeyboard.PressOrReleaseKey(Keys key, Boolean release)
KeyBoard.KeyDown(Keys code, Boolean delay)
KeyBoard.KeyDown(Keys key)
<.ctor>b__26_8() line 106
Thanks,
Jun

I use ActiveBrowser.Cookies.GetCookies(BaseUri); to get browser cookie, cookie is got, but all expired cookie. The same code if I set chrome not headless, which could get un-expired cookie. Is it not supported yet?
Chrome headless:
Chrome:

Hi Jun,
I tried not support, will got exception when lunch new browser, but still want to double confirm with team whether there's a possibility.
Thanks,
Jun


Hello,
I am currently evaluating Telerik Test Studio Dev Edition (Visual Studio Plugin) with a trial license.
I successfully created a few WPF Tests in a sample application I created from scratch using .NET 6, WPF and some Telerik UI for WPF components (e.g. RadGridView). Here, the recording works perfectly. When I click on Start by recording Test Steps, the application starts, gets unresponsive for ashort while (~3 sec.) and then the Recorder overlay appears and I can record the test.
But then I tried to automate tests for a small tool, let's call it SmallTool, which is also a .NET 6 WPF application. But here, recording only works by using a Desktop Test. This limits the available test steps significantly (e.g. I cannot "evaluate the third item in this List"), so the tests become useless.
Here are the differences between my sample project and SmallTool that I notice:
I also already checked the Desktop Application Will Not Record support article. My SmallTool did appear as a WPF application.
Can you help me with getting WPF tests to work?
Log output in the Test Studio log:
<see attachment "teststudioLog - Kopie.txt">
Recently we found an issue about popup in Edge.
when we do some wrong behaviors, alert will show up. just like this (https://demo.atata.io/products).
And we used dialogElement(the namespace is ArtOfTest.Common.Extensions) to catch the message. It works but after that we can't control the page. Whatever we tried like refresh the page or press enter by code, it always stuck until alert is closed manually or time out. Is there some one has the same situation? And if so, how to solve it?
Below is the code:

Recently we have had some problems by using ArtOfTest(telerik testing framwork using 2022 version).
There are some methods doesn't work after migrating to Edge (Version 111.0.1661.41 (Official build) (64-bit)) which IE is retired that we had to change the browser.
Below is the code after change. we have to control the mouse to click popup and copy the message which should work by using AlertDialog of ArtOfTest. So is there some new solution or better way to fix this issue?
Manager.Current.DialogMonitor.AddDialog(new AlertDialog(Manager.Current.ActiveBrowser, DialogButton.OK));
Manager.Current.DialogMonitor.Start();
// to retreive pop up text
var message = element.GetAttributeValue("onclick");
