Мне нужна помощь с циклом while, ниже приведен код страницы, где я должен это сделать:
<div class="list">
<span class="destination">
<a tabindex="20" href="/flights-to/uk/cheap-flights-to-united-kingdom.html">United Kingdom</a>
</span>
<span class="destination">
<a tabindex="21" href="/flights-to/es/cheap-flights-to-spain.html">Spain</a>
</span>
<span class="destination">
<a tabindex="22" href="/flights-to/us/cheap-flights-to-united-states.html">United States</a>
</span>
<span class="destination">
<span class="destination">
<span class="destination">
<span class="destination">
<span class="destination">
<span class="destination">
<span class="destination">
<a tabindex="29" href="/flights-to/belf/cheap-flights-to-belfast.html">Belfast</a>
</span>
</div>
Я должен подготовить скрипт, который будет нажимать на каждую ссылку и проверять, нет ли, например, Ошибка 404.
Я могу сделать это в Selenium IDE, но я не знаю точно, как мне начать с C # и Selenium2. Может быть, у кого-нибудь есть советы?