I'm using WatiN to write an automated bot for harvesting information. Is it possible to check if an element on the page exists?
I usually the use the following:
WatiN.Core.IE window = new WatiN.Core.IE();
if (window.Elements.Exists("yourElementId")) {
// do whatever
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With