Error UI-DBP-006 Container Usage Top level selector used outside scoped containers in activities Click 'radio button Save File' Click 'push button OK

Hi

i am getting the below error while publishing the package.

Error UI-DBP-006 Container Usage Top level selector used outside scoped containers in activities Click ‘radio button Save File’ Click ‘push button OK’. TTC_EmailAutomation.xaml
Recommendation
Using scopes such as Open Browser and Application gives a level of reusability in selectors. Try to use scopes instead of direct UI Activities. Learn more.

Regards,

Try to follow the recommendation given as described on the documentation linked

Good day,

If we open an application with a different activity, how could we use the recommended OpenApplication activity? Thank you in advance.

It depends mainly on the use case. If you can share a sample workflow of your problem then I might be able to understand it a little more.

1 Like

Hi @heena_shaikh

I have faced the same issue. This happened because I have placed the main application selector element

For Eg:

<app=‘facebook.exe’ ctrlname=‘mainpage’ />

in the selector of the Click button selector like

<app=‘facebook.exe’ ctrlname=‘mainpage’ />
<button=‘submit’ />

Due to this, an issue occurred for me.
What you have to do is to replace the Click button selector like

<button=‘submit’ />

alone.
This will resolve your issue.

Thanks

1 Like