Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# および Selenium Webdriver で Visual Studio MVC3 を使用して、ログイン ページでフィールド検証をテストしようとしています。表示されるエラー テキストによってログインが失敗したかどうかを判断できる Selenium スクリプトが必要です。私のオプションは何ですか?
セレンにログインしてから、ページ上のテキストを探すか、警告/エラーテキストが要素内にある場合は、次のようなものを使用できます-
element.Text.Equals("text");
もちろん、コードを表示しなくても、これは本当に一般的なものです。