Jump to content

No access to Form in iFrame?


Recommended Posts

Link to comment
Share on other sites

14 hours ago, Nine said:

@Spok3r Here for you (based on Danp2 hint sometimes ago) :

#include <Constants.au3>
#include <IE.au3>

Local $oIE = _IECreate("https://spreadshirt.com/")

Local $tags = _IETagNameGetCollection($oIE, "div")
For $tag In $tags
  $class_value = $tag.className
  If $class_value = "Label" Then
    $sInnerText = _IEPropertyGet($tag, "innertext")
    $sInnerText = StringStripWS($sInnerText, 3)
    If $sInnerText = "Login" Then
      _IEAction($tag, "click")
      ExitLoop
    EndIf
  EndIf
Next
_IELoadWait ($oIE)
_IENavigate ($oIE, "https://accounts.spreadshirt.com/login?context=www&amp;lang=en")
$oForm = _IEFormGetCollection ($oIE,0)
$oItem = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oItem, "MyUserName")
$oItem = _IEFormElementGetObjByName ($oForm, "password")
_IEFormElementSetValue ($oItem, "MyPassword")
$oItem = _IEFormElementGetObjByName ($oForm, "login-submit")
_IEAction($oItem, "click")

A hint for you, when you request help and someone asks you to provide something, it is simple politeness to agree...

Thank you very much for your help, you basically just navigate to the login page directly. 
Without the need of pressing the Login button. That seems to be the only way get the form focused.

Usually I am polite and understand the need of providing informations that are requested.
I think I was just a bit confused because what was requested was actually my issue.
Seems to be unlogical to me to show something I don't have and was requesting by my own. 😅

Would really like to know if it would be possible to get access from the main website by clicking on Login to open the form instead of navigating to the login link.
If the Login-Form is active/open it should be accessable or not? All necessary informations are shown in the html-code afterwards. Looks like it's just a iFrame form ..really strange.

But anyway... I think it's over here. It can't be a 100% auto-login tool anymore.
They added a reCAPTCHA verification. 


I really appreciate your help, even if it may looked like I am unpolite ( what I never inteded to be).

Cheers!

Link to comment
Share on other sites

Asking without trying or doing anything does not work well here. Please don’t beg for code

And if capta is being used then you will get no assistance from this site

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...