Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the concept of Step Definition in Cucumber.
Answer: Step Definitions are the actual code that maps the Gherkin language statements to executable code, providing the automation logic for each step.

Example:

Given(/^the user is on the login page$/, () => {
  // code to navigate to the login page
});
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook