Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

SafariDriver doesn't allow executing any scripts on data URLs #1049

Closed
@juliemr

Description

@juliemr

For example, try doing something like

  driver.get('data:text/html,<html></html>').then(function() {
    console.log('done with the get');
  });

  driver.executeScript('document.body.innerHTML="got to 1"').then(function() {
    // This never happens.
    console.log('done with executing the first script');
  });

It'll just time out.

EDIT:

In fact, it's not just executeScript - it won't do anything after the navigation to the data url. It won't get the current url, do another navigation, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions