web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

RSAT for cPOS the script fails stating:Exception has been thrown by the target of an invocation

(0) ShareShare
ReportReport
Posted on by
I am using test recorder on cPOS. The test script runs fine for few times, but, after few runs it keeps failing with the following error, even when no change is made to the recording xml file or the variable xls file.
Status: Test case failed.
ERROR:
<?xml version=/1.0/ encoding=/utf-16/?>
<Error xmlns:xsi=/http://www.w3.org/2001/XMLSchema-instance/ xmlns:xsd=/http://www.w3.org/2001/XMLSchema/>
  <ExceptionType>System.Reflection.TargetInvocationException</ExceptionType>
  <Message>Exception has been thrown by the target of an invocation.</Message>
  <StackTrace>   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark&amp; stackMark)   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)   at System.Activator.CreateInstance(Type type, Object[] args)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.PosApplication.PageFactory.CreatePage[T](TimeSpan waitForViewTimeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.DeviceActivationPage.ActivateDevice(DeviceActivationRequest deviceActivationRequest)   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.ExecuteDeviceActivationProcessScript()   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.TestSetup()   at Microsoft.Dynamics.Commerce.Client.Platform.PosPlayback.RecordingPlayback.TestPlayback.ReproduceEvents(IList`1 eventsList, RecordingVersion recordingVersion, String timeXmlFilePath)   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.TestPlaybackManager.PlaybackEvents(Int32 testCaseId)   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.Application.Start()   at Microsoft.Dynamics.Commerce.PosPlayback.RecordingsRunner.Program.ExecuteCommands(PlaybackCommandArgs args, ILogger logger)</StackTrace>
  <InnerError>
    <ExceptionType>OpenQA.Selenium.WebDriverTimeoutException</ExceptionType>
    <Message>Timed out after 120 seconds</Message>
    <StackTrace>   at OpenQA.Selenium.Support.UI.DefaultWait`1.ThrowTimeoutException(String exceptionMessage, Exception lastException)   at OpenQA.Selenium.Support.UI.DefaultWait`1.Until[TResult](Func`2 condition)   at Microsoft.Dynamics.Commerce.UIAutomation.Core.Browser.WaitUntil[TResult](Func`2 webDriverAction, TimeSpan timeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.PageBase.WaitUntilViewIsActive(IApplicationDriver driver, String viewName, TimeSpan timeout)   at Microsoft.Dynamics.Commerce.UIAutomation.POS.Pages.LogOnPage..ctor(IPageDependencies dependencyContainer, TimeSpan timeout)</StackTrace>
    <PlaybackVersion>9.39.0.0</PlaybackVersion>
  </InnerError>
  <PlaybackVersion>9.39.0.0</PlaybackVersion>
</Error>
 
 
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 55

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans