https://coinpot.co/signin I want to automatically login to this page. I automatically fill in the required fields for this, but when I click on the button, the input is not realized.
I wrote my c # code as follows.
- webBrowser1.Document.GetElementById("SignInEmailInput").SetAttribute("value", email);
- webBrowser1.Document.GetElementById("SignInPasswordInput").SetAttribute("value", pass);
-
- HtmlElementCollection elc = webBrowser1.Document.GetElementsByTagName("button");
- foreach (HtmlElement el in elc)
- {
- if (el.GetAttribute("type").Equals("submit"))
- {
- el.InvokeMember("Click");
-
- }
- }
When I check the page's login button, a script is running.
Button html:
- <button type="submit" class="btn btn-outline btn-info" data-bind="click: signIn">Sign In</button>
Button JScript:
- function(b) {
- var g, m = d()[h];
- if (m) {
- try {
- var k = a.a.O(arguments);
- e = f.$data;
- k.unshift(e);
- g = m.apply(e, k)
- } finally {
- !0 !== g && (b.preventDefault ? b.preventDefault() : b.returnValue = !1)
- }!1 === c.get(h + "Bubble") && (b.cancelBubble = !0, b.stopPropagation && b.stopPropagation())
- }
- }
I do not know about JavaScript. I need your help in coding so I can fix the problem.
Thank you all very much.