-
Notifications
You must be signed in to change notification settings - Fork 48
I cannot login with tab.fill #21
Comments
Hi @man0l, Could you add between your After running some test with the given code, i faced to a captcha (after calling Could you tell me, if you got the same result with this ? Regards, Martin B. |
You're right, @TASnomad, I get captcha! Thank you for your reference! This means the cookies are not set correctly and the fill() method works correctly :) I have similar script in casperjs and when I enabled the cookies, I was able to log-in. I am new with headless google chrome, how can I pass the cookies correctly?
|
@man0l , If you use the current version of Nickjs you can call The functions setCookies() takes an object which looks like:
And code snippets could look like the follow examples:
or :
|
Thank you for your reply, Tas! Regards, |
Hi,
thank you for your time in advance.
I am having login issue with nickjs.
I took the cookies from my browser and I set it up before opening the URL.
This is my code. As you can see from the screenshot, it fills the email and the password (the "name" attributes are the same with the input's keys) but it stops there (you can see my shell console output bellow).
I tried to navigate to a url which requires log-in, but it gives me the login form again, which means the login process wasn't successfull.
Would you help me to solve this issue? I would appreciate your help.
Regards,
Manol.
`
const selector = "form[name='signIn']";
const inputs = {
'email': "real email",
'password': "real password"
};
`root@06131ed62a3b:/app# node index.js
Fatal: Chrome subprocess exited with code 1
The text was updated successfully, but these errors were encountered: