[kantu] Cannot read property 'data' of undefined

I have run the Kantu from visual studio. Do we need to load the kantu scripts manually to Kantu before run the programme?

It says
[kantu] Cannot read property ‘data’ of undefined

I am using below code to load the Kantu
public static void StartProcess(Process process)
{
process.StartInfo.FileName = @“cmd.exe”;
process.StartInfo.Arguments = “/K” + @"""""" + @“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”" “”" + ScriptFolder + testScript + “?direct=1&close=1&savelog=” + logName + ‘"’;
Thread.Sleep(5000);
process.Start();

timePerProcess.Start();

	}

ScriptFolder= "file:///D:/TFS/Mobile%20Action/Tests/MobileAction.Test/Approval/Approval.Test.Web/KantuScript/"strong text

This should not happen. I have a new questions:

  1. Does it happen with every macro or “just” this one?

  2. As a test, does it also happen when an instance of Chrome is already open?

  3. As another test, does it also happen when you manually enter the URL into Chrome?

1 Like
  1. I am having 5 macros there. Initial load of every macro it happened.
    (I stop my program & run again: Then first macro works but second macro not worked & gave same error.)

    2.When chrome is open & not open it’s same.
    3.When I enter the below Url manually also it’s same error.
    file:///D:/TFS/Mobile%20Action/Tests/MobileAction.Test/Approval/Approval.Test.Web/KantuScript/LoginTestcase.html?direct=1&close=1&savelog=LoginTestcase.txt

When I done some change to a macro, Need to run the program two times to apply the change.

process.StartInfo.Arguments = “/K” + @"""""" + @“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”" “”" + ScriptFolder + testScript + “?direct=1&close=1&savelog=” + logName + ‘"’;

Still waiting for a reply

I’m seeing this error too. For me, it happens when I run kantu from CLI.