Jeetendra Edke
Jeetendra Edke

Reputation: 105

UI Automation - Karate DSL unable to identify locators of HTML file

Feature: Locate elements of HTML page instead http URL

Background:

Scenario: Given driver 'D:/APIs/test-iframe.html'

Upvotes: 1

Views: 35

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58088

As far as I know, an HTML file loaded from the file system will NOT behave like a web-page and some things you expect will not work.

You may have to run a web-server and then use that to serve the file.

If you have python installed, that may be a very quick way to do it.

Karate can do it as well with some more work.

Upvotes: 1

Related Questions