.net - Login to slideshare -


i'm trying create tool manage multiple slideshare accounts. it's pretty tiresome login , logout of each of them manually, thought create simple webbrowser tool login me.

problem is, when try hit login button tells me 'fields need populated' (and are) when focus control , try press login manually (from within webbrowser control) tells me it's 'invalid username/password combination'

i took step firther , deleted text inputs , repasted same ones text file, same 'invalid user/pass' massage appears.

when try yo manually actual ie browser, logs in no problem. have no idea i'm doing wrong. here's code:

private sub targetslideshare()     dim details() string     details = accounts(currentacc).split(":")     user = details(0)     pass = details(1)     label19.text = (currentacc + 1).tostring + "/" + accounts.length.tostring      status = "logout"     label20.text = status     loaded2 = false     webbrowser2.navigate("https://www.slideshare.net/logout")     while loaded2 = false         threading.thread.sleep(1000)     end while     threading.thread.sleep(1000)      status = "logging in"     label20.text = status     loaded2 = false     webbrowser2.navigate("https://www.slideshare.net/login")     while loaded2 = false         threading.thread.sleep(1000)     end while     threading.thread.sleep(5000) end sub  private sub webbrowser2_documentcompleted(byval sender system.object, byval e system.windows.forms.webbrowserdocumentcompletedeventargs) handles webbrowser2.documentcompleted     if webbrowser2.readystate <> webbrowserreadystate.complete         exit sub     end if     if status = "logout"         loaded2 = true     elseif status = "logging in"         webbrowser2.document.getelementbyid("user_login").setattribute("value", user)         'webbrowser2.document.getelementbyid("user_login").setattribute("placeholder", nothing)         webbrowser2.document.getelementbyid("user_password").setattribute("value", pass)         'webbrowser2.document.getelementbyid("user_password").setattribute("placeholder", nothing)         dim allelements htmlelementcollection = webbrowser2.document.all         each webpageelement htmlelement in allelements             if webpageelement.getattribute("value") = "login"                 status = "loading"                 webpageelement.invokemember("click")             end if         next          loaded2 = true end sub 

i can't site pc i'm at, following works me login google:

private sub form1_load(sender object, e system.eventargs) handles me.load     webbrowser1.navigate("https://accounts.google.com/servicelogin?hl=en&continue=https://www.google.com/") end sub private sub webbrowser1_documentcompleted(sender object, e system.windows.forms.webbrowserdocumentcompletedeventargs) handles webbrowser1.documentcompleted     webbrowser1.document.getelementbyid("email").innertext = user.tostring     webbrowser1.document.getelementbyid("passwd").innertext = pass.tostring     webbrowser1.document.getelementbyid("signin").invokemember("click") end sub 

one other trick might helpful:

i've found when i'm having problems logging in through webbrowser control on desktop sites trying automate login on mobile version ie: https://www.slideshare.net/mobile/login works.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

java - Using an Integer ArrayList in Android -