How to enter login/password into a browser without knowing the code of the popup? - protractor

Can anyone explain to me how to enter login/password into a browser popup without knowing the code of the popup using Protractor ?
Thank you for your helpPopup

You can use authenticateUsing method. See the doc:
https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/Alert.html
And usage example:
https://stackoverflow.com/a/51129214/6331748

Related

Facebook like button redirection?

I tried to install Facebook Like Button (http://developers.facebook.com/docs/reference/plugins/like/) on my page but after I've put the code (HTML5 version) there is some strange redirect which change address of the page adding "_FB_f2af6423b6fd064xd_action=proxy_ready&data" to it?
Do you have any idea what may cause the problem?
I can install iframe version of like box but some time ago I received an information about similar problem while there was some toolbar installed in the web browser. String in url was different but result the same - error 404.
You can see the problem here: www.keeeper.voyagersblog.com/en/ and properly working page (without like button) here: www.bea.trvblog.com/en/ .
Thank you for help!
Best regards,
Bartek
The problem was that I have my own js EventListener called 'message' and it seems that facebook use the same name.
My event listener is fired by fb script and then my function makes redirect (params are not proper so it goes nowewhere).
When I changed listener name it's ok, it seems that it's fb bug.
Thank you anyway!

Page tab , developer app.

I just want to use developer app for creating normal simple custom tab. And always get:
"400 Bad Request
Your browser sent a request that this server could not understand. "
There is no syntax errors as u can see image below:
Screen of configuration
I did configured it as all tutiorals says:
Here is link for you to check that there is any simple text wrote in html:
https://www.cactusek.home.pl/index.html
So any1 can help me PLEASE!?:)
help would be appreciate !
greetings
When I went to that link, my browser complained that your SSL cert is bad. Fix that and it might work better.

zend framework redirector->gotoUrl() with target=_blank

On submitting a form I want to sent my visitor to an external url to do something but hope he will continue browsing my site afterwards. In html I would give him that opportunity with href="http://www.example.com" target="_blank".
But I cannot find how to do that when I do:
$this->_helper->redirector->gotoUrl('http://www.example.com');
within my controller action. Nothing found in Google, documentation nor SO. Is it just not possible?
Not possible. You can't tell the browser what to do in this scenario.
You can achieve that effect with the help of Javascript:
submit the form
on success, open a new tab with the external page with JS
redirect to a new location within your app on the old tab
It is possible now:
$link = new PTA_Link();
$link->setTarget('_blank');

Connect URL in the application settings editor

To fix this error, please set your Connect URL in the application settings editor. Once it has been set, users will be redirect to that URL instead of this page after logging in.
How can set THIS URL ??
I am using fb:login-button
if anyone can help me with some details ... appreciate it.
Thanks
Is there not a parameter you can pass in to handle this?
Example, on this page they cite:
https://developers.facebook.com/docs/plugins/registration/
params like registration-url and redirect_uri

FB.provide is not a function

I'm developing a WordPress plugin to show above or bottom the posts Facebook like and send buttons.
Unfortunately when is also activated a plugin for Facebook share button there is a Javascript error (FB.provide is not a function) and like and send buttons don't appear.
For example this happens in this page: http://www.pasqualepuzio.it/2011/04/plugin-facebook-like-and-send-button/
How can I solve this issue?
Thank you very much
I ´ve faced the same problem and it happens if you add the script twice on the site (http://connect.facebook.net/sv_SE/all.js)
I understood that part that we cant have all.js twice but I want to have Facebook Share Button and Facebook Like Button.
According to Docs, I need to include these two JS Files.
https://connect.facebook.net/en_US/all.js
http://static.ak.fbcdn.net/connect.php/js/FB.Share
Now, If I include both Firebug will give me same error "FB.provide is not a function". If I remove either of them then Like or Share button wont work.
I can do iFrame version but I have HTML Encoding issues with iFrame Version. I am programmatic generating HTML Response.
Any idea, how to approach?
There is a workaround for this: instead of placing the javascript Fb.Share within the same page where you are loading the Javascript SDK, use an Iframe with the first and set it in the second.