Instead, I recommend that you change this: The one point where I disagree with the above blog posting is where the author recommends removing a try/catch block in the generated method. If you replace "*firefox" in the line above with "*iexplore" the test case will run with Internet Explorer instead of FireFox.įor a thorough description of how to use Selenium IDE, Selenium RC, and NUnit to build and run automated tests, see: Selenium = new DefaultSelenium("localhost", 4444, "*firefox", "") If your preferred language is C#, the first line of generated code in public void SetupTest() will look a little like this: After that you can run it using the combined benefits of Selenium RC and NUnit. To get Selenium to test a web site using IE, you need to first tell the Selenium IDE to generate code for you in your preferred language, and then you can modify that code a with a small tweak like the one shown below.
0 Comments
Leave a Reply. |