Guest User

Untitled

a guest
Apr 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. private WebDriver driver;
  2. @Before
  3. public void before(){
  4. driver = new FirefoxDriver();
  5. }
  6.  
  7. @Given("^something$)
  8. public void someGivenMehtod(){...}
  9. @When("^anotherThing$)
  10. public void someWhenMethod(){...}
  11. @Then("^conclusion$)
  12. public void someThenMethod(){...}
  13.  
  14. @After
  15. public void after(){
  16. driver.close();
  17. }
Add Comment
Please, Sign In to add comment