forked from cucumber-attic/cuke4duke
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7df189c
commit d6a98e7
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
examples/java-webdriver/src/test/java/cuke4duke/webdriver/Debugging.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cuke4duke.webdriver; | ||
|
||
import org.junit.Test; | ||
|
||
import java.lang.reflect.InvocationTargetException; | ||
|
||
// See http://wiki.github.com/aslakhellesoy/cuke4duke/debug-cuke4duke-steps | ||
public class Debugging { | ||
@Test | ||
public void letsDebug() throws InvocationTargetException, InstantiationException, IllegalAccessException { | ||
WebDriverFacade wdf = new WebDriverFacade(); | ||
ResultsPage rp = new ResultsPage(wdf); | ||
SearchPage sp = new SearchPage(wdf); | ||
|
||
sp.visit(); | ||
sp.search("cucumber github"); | ||
rp.shouldSee("<em>Cucumber</em> itself is written in Ruby"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters