saucepleez / taskt

taskt (pronounced 'tasked' and formely sharpRPA) is free and open-source robotic process automation (rpa) built in C# powered by the .NET Framework
http://www.taskt.net/
1.1k stars 352 forks source link

Open Chrome insert URL - Debug #224

Closed DiogorMaia closed 3 years ago

DiogorMaia commented 4 years ago

When Im running a simple taks with 2 steps: 1 Opem chrome 2 open URL

LOGFILES

{"@t":"2020-07-13T15:33:48.6824710Z","@mt":"{\"LoggedOn\":\"2020-07-13T16:33:48.5254725+01:00\",\"Result\":1,\"Error\":\"System.Exception: App Instance 'default' not found!\r\n em taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteCommand(ScriptAction command)\r\n em taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteScript(String data, Boolean dataIsFile)\",\"ExecutionTime\":\"00:00:07.6841689\",\"FileName\":\"C:\\Users\\diogo_maia\\Documents\\taskt\\My Scripts\\Open_tobeflow.xml\"}"}

=================================== 2020-07-13 16:43:47.957 +01:00 [INF] Engine Class has been initialized 2020-07-13 16:43:47.960 +01:00 [INF] Client requesting to execute script using frmEngine 2020-07-13 16:43:47.966 +01:00 [INF] Bot Engine Started: 13/07/2020 16:43:47 2020-07-13 16:43:47.978 +01:00 [INF] Deserializing File 2020-07-13 16:43:47.979 +01:00 [INF] Script Path: C:\Users\diogo_maia\Documents\taskt\My Scripts\Open_tobeflow.xml 2020-07-13 16:43:47.983 +01:00 [INF] Creating Variable List 2020-07-13 16:43:47.986 +01:00 [INF] Creating App Instance Tracking List 2020-07-13 16:43:47.993 +01:00 [INF] Running Line 1: Create Chrome Browser - [Instance Name: 'tobeflow', Instance Tracking: Keep Instance Alive] 2020-07-13 16:43:55.222 +01:00 [INF] Running Line 2: Navigate to URL [Navega para o tobeflow] [URL: 'tobeflow.XXXXXX.pt', Instance Name: 'tobeflow'] 2020-07-13 16:43:55.486 +01:00 [INF] Result Code: Error 2020-07-13 16:43:55.486 +01:00 [INF] Error: System.InvalidCastException: Não é possível associar o objecto de tipo 'OpenQA.Selenium.Chrome.ChromeDriver' ao tipo 'SHDocVw.InternetExplorer'. em taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteCommand(ScriptAction command) em taskt.Core.Automation.Engine.AutomationEngineInstance.ExecuteScript(String data, Boolean dataIsFile)

naga1992 commented 4 years ago

HI @DiogorMaia

I am guessing the navigate to url action which you are using is from the IE command Browser commands section , please use the navigate to url action from web browser commands section