![]() ![]() Click “Open Project” in the File menu, and choose the projects dll file. It is a good practice to check this before any other tests take place, this way you can spare some time during test debugging. The testMethod will only check if we are on the correct page by testing the page title. The timeout should be between 30-60 seconds, depending on your internet connection and on how much js/flash is used on the page. And it will set the default timeout after a page load request. This code will initialize Webdriver using a Firefox Driver, which means that Firefox will be used to run the test. closes every window associated with this driver set the timeout after page load to 30secondsĭriver.Manage().Timeouts().ImplicitlyWait(new TimeSpan(0, 0, 30)) ![]() the same way we can setup webDriver to use other browsers When all of this is done we can start to write some simple test code. Open up a new Class Library Project in Visual Studio and add the downloaded Webdriver and NUnit library files to the project. ![]() First step is to download the necessary software NUnit and WebDriver:Īnd download the newest Webdriver library from page ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |