Testing / Karate Framework Interview questions
What is Karate's UI automation driver used for?
Karate's built-in driver automates browser interactions, clicking, typing, navigating, and asserting on page content, using the same feature-file syntax as API tests, so a team testing both an API and its UI can share tooling, reporting, and conventions instead of maintaining a separate framework just for UI.
Scenario: log in through the UI Given driver 'https://example.com/login' And input('#username', 'alice') And input('#password', 'secret') When click('#login-button') Then waitForUrl('https://example.com/dashboard')
Newer versions of Karate drive Chrome, Chromium, and Edge directly through the Chrome DevTools Protocol without needing a separate WebDriver binary, and also support the standard W3C WebDriver protocol for broader cross-browser coverage, including Firefox and Safari, when that's needed.
More Related questions...