Reputation: 105
Feature: Locate elements of HTML page instead http URL
Background:
Scenario: Given driver 'D:/APIs/test-iframe.html'
Upvotes: 1
Views: 35
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