I am trying to automate user sign-up in UI and API. Wanted to know if there is anyway to automate these
Related
I am trying to automate login to my app which uses among others, google sso authentication.
However login form return error "This browser or app may not be secure.". I set my google account options to allow less secure apps but still nothing.
I browsed few topics:
GMail is blocking login via Automation (Selenium)
Selenium Google Login Block
Automation Google login with python and selenium shows ""This browser or app may be not secure""
And it seems that google is blocking this way at all in favor of oauth.
People write in these topics that solutions stopped working recently
So is it currently possible, to set ChromeDriver somehow using capabalities, to be able to login through SSO?. I need a simple solution, that will run headless with other scripts on cloud (not something that would require me to manually login first on another instance as one anwser suggests).
If its not possible or extremly complicated please tell me I will not waste time on it.
If you want to use chrome capabilities, what you can do is set the user-data-dir to a chrome profile that has already been signed in using SSO.
You should look up how to reuse chrome profiles with selenium.
If your accounts have 2 steps verifications, google believe it's safer and allows you to get login. Then the issue will be how to handle the 2 steps verifications. Working on that :/
I am getting the following screen to enter code while login into my google account.
Login to dropbox using gmail
Login to accounts.google.com
How can we eliminate this screen while automating this page. Do we have any other suggestion to automate this page.
This is the exactly purpose of this.
Google doesn’t want you to automate this process for good reasons.
This usesd to be able to be done through signing in at stackoverflow and redirecting to gmail account directly. It seems like it is no longer supported in a session started by Selenium.
I'm trying to create a react native app that uses data from a website that is not mine. I need to enter a login and password to get into this website.
I was thinking about using a web scraper on the backend to accomplish this, but I wasn't sure this was the best approach or even possible. How should I go about doing this?
If you could find the API from the network tabs, then use that API instead. Web Scrapers are more prone to be unstable, you wouldn't want to change the scraper again and again if someone from the website changes something in their UI. Reach out for API first, scraper should be your last option.
I am trying to scrape a webpage on codeeval.com that shows which challenges a user has completed and which ones are not completed. The page is https://www.codeeval.com/open_challenges/ The problem is that I use my github account to log into codeeval.com. I can't figure out how to authenticate my scraper through github so that I can get to that page. Currently I need to manually login and save the HTML file. I'd like to automate the process.
I'm using scrapy and python.
I'm playing around with building an app to integrate a 3rd party API into google sheets using app script and the new AddOn API's for google docs. I've got the Oauth2.0 flow working by adapting this code here. This works, but I don't want this app to be a standalone web app - I just want to add another menu with a few select functions - one of which will be authenticate to the spreadsheet. I have this working in parts (1. new menu with authenticate button that runs a function when clicked. 2. Url that starts Oauth process when I hit that specific URL in a another window), I just am not sure how to connect them.
My problem is that I'm not sure how to display the 3rd party API's Oauth dialog in a way that is integrated with Google Docs. I've tried loading it into a sidebar, but that doesn't seem to be working. Is there a way to open a 3rd party Oauth2.0 dialog with app script?
This is my first interaction with app script but It'e been pretty easy and painless so far. I'm just wondering what the best way to approach this problem would be.
Thanks!
There is no built-in way to do a 3rd party OAuth2 flow using Google Apps Script. However it is possible to write an OAuth2 flow on top of Apps Script, and this library is one such implementation:
https://github.com/googlesamples/apps-script-oauth2