-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
hi @thalaeg Thanks for reaching out.
Looking at the markup from your component, it seems like it is wrapping the Can you perhaps share more about your |
Beta Was this translation helpful? Give feedback.
-
@thalaeg I think the problem is that you are using the That's not just a bUnit thing, it's also how it works in the browser, so you may be using the |
Beta Was this translation helpful? Give feedback.
-
Hi @egil. I was having some problems with .NET 6 rc1 so I had to upgrade to rc2 this morning to fix that issue. Sorry for the delay. Yes, I mistyped in my initial issue. I was expecting
The problem does relate to I may be using it incorrectly! Most of the time, the component (my Unfortunently, it would not be easy to share the I believe you are correct that it is not a |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update and good luck. I'll convert this issue to an discussion, that way it's still searchable for others that might run into similar things. |
Beta Was this translation helpful? Give feedback.
@thalaeg I think the problem is that you are using the
<template>
element. Content inside a template element is not added to the document object model (more about the tag here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template), and can thus not be found usingFind
orFindAll
, both of which are shorthands forQuerySelector
andQuerySelectorAll
respectively, so that is why `Find("button") doesn't return an element.That's not just a bUnit thing, it's also how it works in the browser, so you may be using the
<template>
element incorrectly in this case.