Give a case of a Step Definition File utilizing the Cucumber framework.

1.0K    Asked by ShantellRoye in QA Testing , Asked on Feb 8, 2020
Answered by Shantell Roye

 Step definition compared to the progression "Open Chrome browser and dispatch the application" may appear as though the code referenced beneath:

@Given("^Open Chrome browser and launch the application$")

public void openBrowser()

{

driver = new ChromeDriver();

driver.manage().window().maximize();

driver.get("www.example.com");

}




Your Answer

Interviews

Parent Categories