New answers tagged junit
Selenium is a tool that remote-controls a browser. You can use it to simulate a user interacting with a web site. JUnit is a framework for writing Java unit tests. It takes some of the grunt work out of organizing tests and generating reports. You can express each test as a method on a class; typically, you have multiple tests per class. JUnit will run ...
The test is marked as passed because you're are invoking JUnitCore from within a test class. As soon as JUnitCore.runClasses has completed execution, the current test, ie 'test' in 'ParallelComputerTest', is finished succesfully since no AssertionError were thrown during that test, and that was a single test as far as your IDE's test runner is concerned. ...
Why not use the selenium Alert switchto method and gettext? Alert alert = driver.switchTo().alert(); String text = alert.getText(); alert.dimiss();
Top 50 recent answers are included