Jump to content

[solved] _IEPropertyGet() failure ?


Exit
 Share

Go to solution Solved by Exit,

Recommended Posts

I want to check if an Input field contains the value just set before.

#include "IE.au3"
$oIE = _IECreate("https://secure.rabodirect.de/exp/policyenforcer/pages/loginB2CDGPEN.jsf?anmelden")
$oObject = _IEGetObjById($oIE, "j_username_dig")
_IEPropertySet($oObject, "innertext", "12345678")
$DigiNumber = _IEPropertyGet($oObject, "innertext")
MsgBox(262144, "Debug Value " & @ScriptName, "Error: " & @error & " Extended: " & @extended & @LF & "$DigiNumber: >" & $DigiNumber & "<", 0)
_IEQuit($oIE)

The inputfield contains "12345678",  but the messsagebox shows no error and $DigiNumber="0" instead of "12345678"

Where is my coding error?

Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Developers

This looks a lot like automating a login for a Bank, which I don't think is something to discuss here in open forum.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Solution

It is not possible to automate the login to Rabobank.
You need a "Digipass". This is a hardware device which generates a random key for login.
I just want to prefill my account number. Ok, lazy coder :rolleyes:
 
I want to check if the number is already filled and then I recognized this strange behavior.
Perhaps somebody can enlighten me. :graduated:
 
Edit: Solved thanks to billo. Using _IEFormElementGetValue() did the trick. :thumbsup:

Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

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...