Robotic Process Automation (RPA)

Robotic Process Automation (RPA)

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Support for Exception raised for my first IBM RPA web bot

  • 1.  Support for Exception raised for my first IBM RPA web bot

    Posted Mon December 20, 2021 02:23 PM
    hi guys;
    I am developing my first IBM RPA web bot to access MY_SITE_URL (real working site), described as follows :

    defVar --name atLocation --type String
    defVar --name chromeInstance --type String --value chromeInstance
    inputBox --title "your location" --prompt "Type here" --value 94 atLocation=value
    webStart --name chromeInstance --type "Chrome"
    webNavigate --url "MY_SITE_URL"
    setValue --value "${atLocation}" --setValueType "Text" --algorithm "FocusAndType" --simulatehuman --selector "Id" --id "searchAppointment-searchbar"
    webSendKeys --value "{ENTER}" --selector "Id" --id "searchAppointment-searchbar"
    logMessage --message "assigner valeur ${atLocation}" --type "Info"
    webClose --name "${chromeInstance}" --leavebrowseropen

    running the above wal script within IBM RPA studio (version 21.0.1) opens successfully the MY_SITE_URL, but unfortunately,it fails with following stacktrace exception :

    WDG.Automation.Windows.WindowNotAttachedException: Exception of type 'WDG.Automation.Windows.WindowNotAttachedException' was thrown.
    at WDG.Automation.Windows.BaseWindowControlCommand.EnsureWindow(WindowsContext context)
    at WDG.Automation.Windows.SetValueCommand.ExecuteCore(WindowsContext context)
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ErrorHandler.S35uKe5reZ(Exception )
    at WDG.Automation.Language.ErrorHandler.HandleExecutionExceptionIfNeeded(Exception exception, IAutomationCommand command)
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.aU5hiHAeLc7OV3MJNiw(Object , Object , Object )
    at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()

    I have tried different options but got always the same exception error > algorithm : default / focus and type, value type :default, value, text 
    Is it possible to help me fix the issue ?

    Thanks for any feedbacl or support,

    Best Regards,


    ------------------------------
    adrien chan
    ------------------------------


  • 2.  RE: Support for Exception raised for my first IBM RPA web bot

    Posted Tue December 21, 2021 01:32 AM
    Hi Adrien,

    By looking at your code, I can see you are using the "set value" command. This command is made for automating standalone apps and will require that you provide a window to use.

    Since you are automating a website, I recommend you look at utilizing a browser command like "Set Value to Field" instead. Good luck!

    Set Value to Field