If users are getting below error while running automation scripts using BotPlay automation bot, this is due to using user defined (UD:) element which is not added in the run time environment. Please add the user defined element and then use it in the script.
java.lang.AssertionError: User defined [Grammarly.FileUpload_b] element returned from webservice has an error or is not added. Value - [null]. Please check if you have added data to the BotPlay's runtime environment.
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at com.stellar.stellarui.useraction.util.DataFromWebService.getValueFromPropFileOnWebService(DataFromWebService.java:81)
at com.stellar.stellarui.useraction.util.DataFromWebService.getXpathByORName(DataFromWebService.java:61)
at com.stellar.stellarui.useraction.stepdefination.WindowsStepDef.upload_file(WindowsStepDef.java:24)
at ✽.upload file "***file path**** to "UD:Grammarly.FileUpload_b" element(file:///***file path***automation_scripts/Sample%20Scripts/FileUpload.feature:6)
Screen shot of the BotPlay's execution report with error when user defined element is not added to the BotPlay's runtime environment.
Refer this link to learn how to use user defined elements - https://www.botplayautomation.com/post/six-codeless-ways-to-automate-test-elements-using-botplay-codeless-automation
