How can I skip the 'Sign in with Google' button? - javascript

I'd like users of my website to be able to sign in with their Google accounts and following the basic instructions here I've been able to do so.
However, this relies on having a 'Sign in with Google' button somewhere for the user to click. How can I bypass this button so that the Google login window automatically pops open?
I have tried finding the div of the button and using .click() but this gets blocked by any browser's popup blocker.

Related

I cannot see the modal pop up when chrome is running via selenium

I am trying to automate filling a form to upload marks of each student.
Scenario when filling the form manually:
Click on a button, modal pop up appears, fill form.
Problem when automated:
Clicking on the button does not open modal pop up.
I tried clicking on the same button manually by adding time.sleep() when chrome is being controlled by automated software, it still doesn't show the modal pop up.
Can the modal pop up be blocked when I try running the form through selenium?
I am running the chrome web driver for v78+
you can check "disable-popup-blocking" option for the google Chrome
Click the Customize and control Google Chrome menu (the three dots in the upper right corner)
Select Settings.
Click Advanced at the bottom.
Under Privacy and security, click the Site Settings button.
Select Pop-ups and redirects.
To disable the pop-up blocker uncheck the Blocked (recommended) box.
To enable pop-ups on specific sites, check Blocked (recommended) and click Add next to Allow and enter the URL(s).

I am not able to share URL image using share plugin for EDGE browser

I have added "Share on Facebook" button to my project. When I click on it, it will open the Facebook share model window and when I click share button present on Facebook model window nothing happens, it is not responding.
Can you help?

Overlay pop-ups on navigating nearby the closing tab and not on clicking the closing button

I'm working on designing a website for my academic project,in which the user has to fill some form. Now,the thing i want is whenever user tries to navigate nearby the closing tab (And not when he/she want to close it) or tires to enter the URL for some other website with being on the FILL-UP form page, user gets a pop-up (Which i have already designed using the overlay).Please note that i don't want to show the pop-up when user clicks the close button,Which i suppose can be easily done with Window.Close() or onbeforeunload() function of the javascript.

How facebook/twitter share buttons avoid being blocked by popup blockers?

When a user which is not logged in to Facebook or Twitter, clicks the like/tweet button, a popup comes up asking the user to log in. This popup is not blocked by popup blockers of any kind. in IE for example, it opens up but anyway IE state a warning to the user. The bottom line is that all buttons probably use the same method.
I have a button that people click on it and it should open a similar screen, but it always gets blocked.
The button (in JS) works pretty much like FB like button. It checks if the user is logged in. If he does, then send the "like" to the servers. If he does not, then the login popup appears (and gets blocked).
So, it is a initiated by a user although not fully direct outcome, since we need to check if he logged in or not.
What is best method to do that?
The Popup Is activated by a click using the like, tweet button and they actually show only 1 popup. If you want, you can try by using only a single popup based on click for your website and you will definitely be able to understand this.

Facebook authentication

I have an application which displays canvas page, even though the user clicks "Dont allow" button in a request dialog. Here is my issue:
Load the page http://174.123.24.242/fb_leagle/fbhome.aspx
Login my application through facebook login page of my application.
Click on "Dont Allow" button in a request permission dialog.
In issue #3, if he clicks "Dont Allow" button it will also display the canvas page, and when I click the "BACK BUTTON" of the browser the next dialog appears. Actually I need to skip the canvas page from displaying when user clicks "Don't Allow" button and redirects to the next dialog.
This is my login URL of my application: pls review it and guide me where i need to change it.
Blockquote
**https://www.facebook.com/login.php?api_key=************&skip_api_login=1&display=page&cancel_url=https%3A%2F%2Fapps.facebook.com%2Fleaglecases%2F%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.&next=http%3A%2F%2Fwww.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions.request%26app_id%3D***************%26redirect_uri%3Dhttp%253A%252F%252Fapps.facebook.com%252Fleaglecases%252F%26display%3Dpage%26response_type%3Dcode%26canvas%3D1%26perms%3Dpublish_stream%252Cemail%26from_login%3D1&rcount=1**
pretty format of this url:
https://www.facebook.com/login.php?api_key=************
skip_api_login=1
display=page
cancel_url=https%3A%2F%2Fapps.facebook.com%2Fleaglecases%2F%3Ferror_reason%3Duser_denied%26error%3Daccess_denied%26error_description%3DThe%2Buser%2Bdenied%2Byour%2Brequest.
next=http%3A%2F%2Fwww.facebook.com%2Fdialog%2Fpermissions.request%3F_path%3Dpermissions.request%26app_id%3D***************%26redirect_uri%3Dhttp%253A%252F%252Fapps.facebook.com%252Fleaglecases%252F%26display%3Dpage%26response_type%3Dcode%26canvas%3D1%26perms%3Dpublish_stream%252Cemail%26from_login%3D1
rcount=1
According to the OAuth Dialog Documentation, the user will be redirected to the original app-page.
If the user clicks "Don't Allow", the browser will redirect to
http://www.example.com/response?error=access_denied&
error_description=The+user+denied+your+request.
I suggest you use the $_GET['error'] variable to recognize users that denied the request!
The different errors can be found here

Categories

Resources