Auto Login Function #4425
Replies: 7 comments 5 replies
-
Try creating an insertText event:
|
Beta Was this translation helpful? Give feedback.
-
An alternative to using // Add using CefSharp.Dom; to get access to the
// CreateDevToolsContextAsync extension method
var devtoolsContext = await chromiumWebBrowser.CreateDevToolsContextAsync();
var htmlInputElement = await devToolsContext.QuerySelectorAsync<HtmlInputElement>("input[type='text']");
//Type text in an input field
await htmlInputElement.TypeAsync("username");
// Manually dispose of context (prefer DisposeAsync as the whole API is async)
await devToolsContext.DisposeAsync(); |
Beta Was this translation helpful? Give feedback.
-
thanks for the help and solutions. With both I do not get on this particular page. Everywhere else it works without problems. You seem to be right with the isTrusted flag and they try to prevent exactly that. |
Beta Was this translation helpful? Give feedback.
-
Hi Kleineskraut, were you able to solve it? I think I have the same problem as you accessing https://www.sisal.it/
var userNameField = document.querySelector(""input[type='text']"");
var passwordField = document.querySelector(""input[type='password']""); |
Beta Was this translation helpful? Give feedback.
-
I give up! I've tried them all but I really don't understand how to do it... the "Login" button always remains disabled! https://areaprivata.sisal.it/loginJwt if you ever succeed, please tell me how you did it, I can't. Ciao, I'm really very frustrated! |
Beta Was this translation helpful? Give feedback.
-
I have just tried out something again and followed up on aimcosoftware's idea. This approach works with your site:
You can call this function with:
i don't think the solution is particularly good but i just don't have a better idea and have already given up I am sorry but I have never found a solution. I have just tried again with your site but unfortunately have no success
|
Beta Was this translation helpful? Give feedback.
-
This (see below) WORKS!!!
|
Beta Was this translation helpful? Give feedback.
-
Hello! I hope it's not an old topic but I have searched very much and tried very much but find no good solution:
i have built a function to auto fill via javascript to auto login to website. this works mostly good but sometimes unfortunately not e.g. here: https://geschaeftskunden.dhl.de/ The fields are filled but the page does not validate the values so i can't login. When I click on the button the page says to fill in both fields and clears them again. Does anyone have an idea for me?
Here is the code to fill the user field:
Beta Was this translation helpful? Give feedback.
All reactions