-
Hello, I am currently working on a blazor project and I am trying to do a unit test with bunit, but I am having a problem when I try to make a Change on an InputTextArea Version Utilisé: //Page Razor //Page Test
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Cedric, try changing cut.Find("#PrecisionLocal") The error message you are getting is likely because To inspect the generated markup, debug the test and look at the |
Beta Was this translation helpful? Give feedback.
Hi Cedric,
try changing
cut.FindAll("input").GetElementById("PrecisionLocal")
to this:The error message you are getting is likely because
GetElementById
returns null, because there is no element with that ID in the markup.To inspect the generated markup, debug the test and look at the
cut.Markup
property.