I am trying to use node with Puppeteer to log in to a website but it doesn't let me navigate to the login page. Instead I am re-directed to a page that says that I need to enable cookies in my Chromium browser. When I navigate to the login page manually, I'm not re-directed and my cookies are enabled so I don't know how to fix this.
This problem has been solved by using a different login URL.
Related
I'm unable to access the sign-in page on Gitlab while test headless mode. The page shows this message
This process is automatic. Your browser will redirect to your
requested content shortly. Please allow up to 5 seconds…
...but it never actually redirects to the login page.
Here's my code:
await page.goto('https://gitlab.com/users/sign_in')
await page.waitForSelector('#user_login')
How can I access the Gitlab login page?
I am making an authentication page using node.js and bootstrap. I have been able to login successfully and when I log out, my login page closes and takes me back to the home page.
when i used BACK button from the browser also, the home page is opened.
I want to force the user to login first. the user should not be able to use the BACK button of the browser to go to the home page.
I would like to login to Amazon without browser so that I can get the "code" returned by Amazon which process is running on a MCU. Since MCU cannot run a browser so I cannot use a browser or headless browser to simulate the login process.
Do anyone have any idea to do this ?
Also, since I found that the page "index.html" which hold the "Login with Amazon" button and has Amazon login SDK "https://api-cdn.amazon.com/sdk/login1.js" would redirect to "https://www.amazon.com/ap/signin?..." with different parameter values after clicking the "Login with Amazon" button, can I skip the page "index.html" and go to the Amazon login page directly ?
Thanks,
Jack
You can manually compose the login page URL that the JavaScript SDK composes, but depending on the type of grant, you'll need an https page as your origin or an https page to return to.
So I know I can load cookies in Watir from a file using:
browser.cookies.load("cookies")
The problem is that this will only load cookies for the page I am currently on. So if I want to load the cookies for a webpage I have to visit it before doing so. Is there any way to load cookies before you visit the page?
Watir mimics what a user can do on a browser. A user must be on a page to load cookies for it, so also does Watir/Selenium. You would need to go to the site, load the cookies then you can refresh page / navigate to where on the site you need to be.
Here is my question. I have a site whose IP is 192.168.80.180. I want to use firefox to open it. and at the same time sending it a POST request to login. So I don't need to input the username and password in the web page and when firefox is startup it will directly login to the website. My platform is Linux. Please give me some ideas.
Update:
Concretely, how to communicate with firefox ,and let it load a certain URL which is a dynamic page.
Check this :
http://linux.about.com/od/commands/l/blcmdl1_curl.htm
curl allow you to do requests on anywebsite.