How do i check if an element exists? #4131
Replies: 1 comment
-
It's not possible to directly return a You can easily move the null check into your The alternative is to use CefSharp.Puppeteer which provides an |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
Trying to make an autofill app and for that i need to detect whether the element exists or not
with the regular VisualStudio C# WebBrowser, I was able to achieve it with this:
if (webBrowser1.Document.GetElementById(input) != null)
But having hard time to figure out how to achieve the same effect with CefSharp
I tried this code, but it only makes my app crash:
`
Beta Was this translation helpful? Give feedback.
All reactions