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

Execute javascript over https base url #1

Open
ealves opened this issue Nov 12, 2015 · 9 comments
Open

Execute javascript over https base url #1

ealves opened this issue Nov 12, 2015 · 9 comments

Comments

@ealves
Copy link
Owner

ealves commented Nov 12, 2015

Problem when try to execute javascript with non https src.

@ealves ealves added the bug label Nov 12, 2015
@ealves ealves self-assigned this Nov 12, 2015
@ealves ealves added enhancement and removed bug labels Nov 21, 2015
@ealves ealves modified the milestone: First stable version Apr 14, 2016
@ealves
Copy link
Owner Author

ealves commented Apr 19, 2016

May be this will need a proxy to work with selenium and socket.io.

@magestican
Copy link

Will start working on this

@rominoushana
Copy link

If this problem can be fixed, that would be perfect. I am in extreme need of this project.

@xunwu
Copy link

xunwu commented Oct 7, 2016

Yeah, I also meet this situation, anyone can solve it ?

@simar0at
Copy link

simar0at commented Mar 19, 2017

I have no solution but a workaround: Use https://mitmproxy.org/ . Start it in reverse proxy mode -R https://{your server} and you can use http://localhost:8080/ as a replacement for your real url. The injection of the JavaScripts that record your interactions works then. You can replay your recorded actions on any site with https.

@magestican
Copy link

I just created a PR with a fix for this issue, please comment there if it works and if so lets merge it :) @ealves

@ealves
Copy link
Owner Author

ealves commented May 3, 2017

This issue is not a bug, it's a enhancement. Once you are not developing in a https and can’t control https, i suggest to not use this project.

This tool is for end to end tests and not to validate integrations between different systems. I suggest another tool to extract informations, like crawlers.

The idea besides using https is just to test in a production environment under control.
So, you’ll need to run the selenium web driver under https too and not only the protractor recorder.

Maybe something is missing or you have to describe some new steps to configure it right. Your PR doesn’t work for me @magestican

@aggro80
Copy link

aggro80 commented May 8, 2017

@magestican I get this error in Windows 7:
node v7.9.0
npm 4.2.0

[08:31:19] Using gulpfile C:\proto\record\protractor-recorder\gulpfile.js
[08:31:19] Starting 'express'...
[08:32:02] Finished 'express' after 43 s
[08:32:02] Starting 'livereload'...
[08:32:04] Finished 'livereload' after 1.94 s
[08:32:04] Starting 'watch'...
[08:32:07] Finished 'watch' after 3.79 s
[08:32:07] Starting 'default'...
[08:32:07] Finished 'default' after 92 µs
C:\proto\record\protractor-recorder\server.js:339
    var httpsExpressServer = https.createServer({key: keys.serviceKey, cert: keys.certificate}, app)
                                                          ^

TypeError: Cannot read property 'serviceKey' of undefined
    at C:\proto\record\protractor-recorder\server.js:339:59
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:278:24
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:168:24
    at done (C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:78:24)
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:91:13
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:1044:20
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:1027:9
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:937:20
    at C:\proto\record\protractor-recorder\node_modules\pem\lib\pem.js:1092:20
    at F (C:\proto\record\protractor-recorder\node_modules\which\which.js:68:16)

@aggro80
Copy link

aggro80 commented May 8, 2017

@ealves Just FYI that we have a project which does not have ideal setup. We can test the system partially with HTTP, but HTTPS is pretty much required for us so that we can do full end to end testing. Is there any hope to see HTTPS support in the near future? And do you know how to run selenium web driver in HTTPS-mode?

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

No branches or pull requests

6 participants