Jump to content
Sign in to follow this  
Exit

[solved] _IEPropertyGet() failure ?

Recommended Posts

Exit

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

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Exit

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

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
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
Sign in to follow this  

×