I've recently started converting my automation suites from WatiN to Selenium2. In both cases, I've been using C#. Although these may seem like simple questions, I've been searching for answers for about 2 weeks with almost no success.
1) Is there a way to assert that an element exists? I've had to resort to creating an abject and expecting an exception to be thrown if it doesn't exist on the page. In WatiN, it was as simple as:
2) Is there a way to assert that text is present on the page? I've yet to find a work around for this. In WatiN, my test would have been:
Thanks in advance.