Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAR Export > Iframe Vimeo Video 'then' Property Permission Denied #41

Open
gavk34 opened this issue Jan 13, 2017 · 0 comments
Open

HAR Export > Iframe Vimeo Video 'then' Property Permission Denied #41

gavk34 opened this issue Jan 13, 2017 · 0 comments

Comments

@gavk34
Copy link

gavk34 commented Jan 13, 2017

I have a page that I am attempting to export the requests for. This page contains multiple videos(HTML5, Vimeo).

I have the API script, that is executed using Selenium, to export the HAR once all videos have finished playing.

har_script = "var options = {
      token: \"test\",
      fileName: \"#{file_name}\"
      };

      HAR.triggerExport(options).then(result => {

      });"

However when calling the above script after the Vimeo videos are playing I get the below error. This does not occur for the HTML5 videos.

Permission denied to access property "then" (Selenium::WebDriver::Error::JavascriptError)
[remote server] https:./player.vimeo.com/video/185300229 line 69 > Function:6:in anonymous' [remote server] https:./player.vimeo.com/video/185300229:69:in handleEvaluateEvent'

The Vimeo video is within an iframe, like so

<iframe src="https://player.vimeo.com/video/185300229" width="640" height="640" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<p><a href="https://vimeo.com/185300229">Monkey Swinging Shadow Puppet with coloured acetates on overhead projector</a> from <a href="https://vimeo.com/user977287">amy lloyd-jones</a> on <a href="https://vimeo.com">Vimeo</a>.</p>

Interestingly comparing the error output and the html source the link is malformed, https://player.vimeo.com/video/185300229 vs https:./player.vimeo.com/video/185300229
Don't know if that is a cause or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant