Argument'condition':UiElement.GetFriendlyName.Contains("INPUT")

Hello


while reading element in uielement am getting this error.

@jamuna_Eakambaram Can you hover your mouse on the red mark and share the error message it was showing

As the error message says, GetFriendlyName cannot be used this way. I suggest using Get Attribute to get the value you want and put it into a variable. Then check the variable’s value in the If.

Are you trying to find all the INPUT elements on a page and do something with them? That’s what Find Children is for. It will return an array of the UI Elements matching your filter (which in this case would be type=‘INPUT’)

Hi,

I guess you use C#. So, the expression will be as the following.

iteminElement.GetFriendlyName(false).Contains("INPUT")

Regards,

Thank you so much for helping and knowledge sharing…It worked!!

Thank you so much for helping and knowledge sharing…It worked!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.