webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Why are file URLs excluded from the post-navigation checks?

Open mlipok opened this issue 3 years ago • 6 comments

I came to an issue where I try to use chromedriver.exe to navigate to a file. When I use an not existen file for example file:///c:/test/NotExistenFile.html then of course browser try's to navigate and returns ERR_FILE_NOT_FOUND but currently chromedriver.exe returns {"value":null} on navigation.

So I checked the documentation for implementation here: https://www.w3.org/TR/webdriver2/#navigate-to

And I do not see any requirmentes for checking if local file exist. Was it intentional ?

mlipok avatar Jan 09 '22 23:01 mlipok

    8. If url is special except for file and current URL and URL do not have the same absolute URL :

        1. Try to wait for navigation to complete.

        2. Try to run the post-navigation checks.

Why are file URLs excluded from the post-navigation checks?

Danp2 avatar Jan 09 '22 23:01 Danp2

Please note that this repository is about the WebDriver specification but not about misbehavior of specific drivers. Please file a bug for chromedriver instead.

whimboo avatar Jan 10 '22 07:01 whimboo

@whimboo It would be appreciated if someone could address this question regarding the specs --

Why are file URLs excluded from the post-navigation checks?

Danp2 avatar Jan 10 '22 14:01 Danp2

Oh I see. Lets reopen the issue then and wait for the requested feedback.

whimboo avatar Jan 10 '22 15:01 whimboo

please add here tag awaiting feedback

mlipok avatar Mar 30 '22 12:03 mlipok

I hope that after such a long time someone will find a moment to take a look at this issue.

mlipok avatar Jan 23 '24 20:01 mlipok