I just used the find children activity and used the same selectors code in the click activity after that, it still clicks on the old text when I run it the second time.
Hi @Pema_Sherpa,
Find children output â innumerable
Assume as Children
Get the last element Children.last
Using click event pass the element as Children.last
Regards,
Arivu
The workflow has validation errors. Review and resolve them first.
System.Activities.InvalidWorkflowException: The workflow has validation errors. Review and resolve them first. â> System.Activities.InvalidWorkflowException: The following errors were encountered while processing the workflow tree:
âDynamicActivityâ: The private implementation of activity â1: DynamicActivityâ has the following validation error: The following overload groups are configured: Element, Selector. Only one overload group should have its arguments configured.
at System.Activities.Validation.ActivityValidationServices.ThrowIfViolationsExist(IList`1 validationErrors, ExceptionReason reasolve
@Pema_Sherpa, In click activity as arivu mentioned, pass children.last in element property
Regards,
Dominic
In click activity change the properties change selector to children.last
Regards,
Arivu
@arivu96, as it is an Uielement you need to pass it in element not in selector
Regards,
Dominic
Yes you are correct pass it into element property
Regards,
Arivu
Set the Scope property to âFind Descendentsâ .
Regards,
Arivu
this is new pema.
An error has occured
Source: System.Xml
Message: Unable to cast object of type âNewtonsoft.Json.Linq.JValueâ to type âSystem.Stringâ.
Exception Type: InvalidCastException
it gives out his error
An error has occured
Source: System.Xml
Message: Unable to cast object of type âNewtonsoft.Json.Linq.JValueâ to type âSystem.Stringâ.
Exception Type: InvalidCastException
System.InvalidCastException: Unable to cast object of type âNewtonsoft.Json.Linq.JValueâ to type âSystem.Stringâ.
at System.Xml.XmlExceptionâŚctor(SerializationInfo info, StreamingContext context)
at Void .ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)(Object )
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializableItem(JToken token, Type type, JsonISerializableContract contract, JsonProperty member)
at Newtonsoft.Json.Serialization.JsonFormatterConverter.Convert(Object value, Type type)
at System.Runtime.Serialization.SerializationInfo.GetValue(String name, Type type)
at System.ExceptionâŚctor(SerializationInfo info, StreamingContext context)
at Void .ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)(Object )
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateISerializable(JsonReader reader, JsonISerializableContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at UiPath.Shared.JsonParser.DeserializeObject[T](String jsonValue)
at UiPath.Models.UiPathDuplexProxy.<>c__DisplayClass21_0.b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
It is in find children activity.
Send screenshot or send me the xaml so that I try to resolve it
Regards,
Arivu
Hi @sherpa24,
i think you are selecting the wrong selector for Find children, select the whole table as selector
the selector will look like tag=âTABLEâ, use UiExplorer to get the exact selector.
Regards,
Arivu
It is still giving me the same error. from the find children it is not returning any element.