Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private WebDriver driver;
- @Before
- public void before(){
- driver = new FirefoxDriver();
- }
- @Given("^something$)
- public void someGivenMehtod(){...}
- @When("^anotherThing$)
- public void someWhenMethod(){...}
- @Then("^conclusion$)
- public void someThenMethod(){...}
- @After
- public void after(){
- driver.close();
- }
Add Comment
Please, Sign In to add comment