Not able to declare variable

Hi @Nithinkrishna

Was not able to declare variable this issue is been seen.
however earlier it was not there

@mitul_choudhary

As the Variable type is string, It is throwing you the error

Find Element accepts UiElement type of Variable

You need to change the type of Variable to UiElement OR you have to create a variable by pressing Ctrl+K

Hope this may help you

Thanks

@mitul_choudhary

iecbr variable should be of type UiPath.Core.UiElement.

2 Likes

it’s been already declared ctrl plus k
& scope is already given as string.

fair enough…!!
just for knowledge why uipath.core instead of srting.

@mitul_choudhary

Here, you are using Find Element and it will give output of type UiPath.Core.UiElement but you declared it as String. So, it thrown that error.

1 Like

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