Skip to content
This repository has been 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 opened this issue Jul 8, 2014 · 2 comments
Closed

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

juliemr opened this issue Jul 8, 2014 · 2 comments

Comments

@juliemr
Copy link
Member

juliemr commented Jul 8, 2014

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.

@juliemr
Copy link
Member Author

juliemr commented Jul 8, 2014

juliemr added a commit that referenced this issue Jul 8, 2014
SafariDriver fails with data urls - see #1049. Reverting to use about:blank
for now.
@juliemr juliemr removed the bug label Jul 8, 2014
samlecuyer pushed a commit to samlecuyer/protractor that referenced this issue Jul 28, 2014
SafariDriver fails with data urls - see angular#1049. Reverting to use about:blank
for now.
@juliemr juliemr modified the milestone: Pending Mar 17, 2015
@juliemr
Copy link
Member Author

juliemr commented Dec 21, 2016

As of Safari 10, SafariDriver is now shipped by Apple with Safari (see the post at https://webkit.org/blog/6900/webdriver-support-in-safari-10/). I'm closing old external safari issues because they are now obsolete.

@juliemr juliemr closed this as completed Dec 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant