Jump to content

Homebanking _IEImgClick in a frame problem


ReFran
 Share

Recommended Posts

Hi,

I want to write my own homebanking tool. With one account, where the bank is working with frames I have a problem.

I can login, but I don't get it to work, to click on the first page the img "Banking" and on the next page to click on "Umsatzanzeige", which should list the account item by item.

The bank offers a ("Muster") sample account, so everybody can go in. Attached a basic script for that what I have and tested so far. I think the hard way would be read the text and if there is a link "..\n_banking\... to execute it, but I'm unsure if that would work with a real (https) account.

Some help would be welcome.

best regards, Reinhard

PS: I work with DebugBar; I put some sleep in the code, beause I wasn't shure to have the right object for _IELoadWait

#include <IE.au3>

$oIE =  _IECreate()
$oIE.navigate("http://domino.s-web.de/ib-demo/login/login.htm?BLZ=&1=","URL")
;WinActivate("Ihr pers")
;$oIE = _IEAttach("Ihr persönliches Finanzportal")
_IELoadwait($oIE,1000)

;;;;;;;;; Login Page;;;;;;;;;;;;;;;;;;;;
sleep(2000)
$oFrame = _IEFrameGetObjByName ( $oIE, "bbpb" )

;_IELoadwait($oFrame,1000)
;; FormName = loginForm

$oDiv = _IEGetObjByName($oFrame, "KontoNummer")
_IEFormElementSetValue ($oDiv, "Irgendwer");"Test Kunde")
$oDiv = _IEGetObjByName($oFrame, "pin")
_IEFormElementSetValue ($oDiv, "12345")
_IEImgClick($oFrame,"Anmelden", "alt")
sleep(2000)
;_IELoadwait($oIE,1000)

$oIE.navigate("http://domino.s-web.de/ib-demo/banking/feIndex.htm?BLZ=&1=")
;_IELoadwait($oIE,1000)
;_IELinkClickByText ($oIE, "Umsatzabfrage")

;$oFrame = _IEFrameGetObjByName ( $oIE, "bbnav" )
;$oFrame = _IEFrameGetObjByName ( $oIE, "bbpb" )
;_IEImgClick($oFrame, "Umsatzabfrage", "alt")
Edited by ReFran
Link to comment
Share on other sites

What messages are sent to the SciTe console?

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

What messages are sent to the SciTe console?

Hi,

if I work with: $oIE.navigate("http://domino.s-web.de/ib-demo/banking/feIndex.htm?BLZ=&1=")

nothing special but the script stays open (have to use exit). The address I got from clicking on "Banking" manual.

DebugBar shows:

IMC scr=http://domino.s-web.de/ib-demo/gifs/a_Banking.gif

Title = Banking, alt=Banking

The image is in the frame: bbnav

if I use:

$oFrame = _IEFrameGetObjByName ( $oIE, "bbnav" )

_IEImgClick($oFrame, "Banking", "alt")

which also doesnt work, I get also no information from Scite, but also the script stays open.

The same happens with

$oFrame = _IEFrameGetObjByName ( $oIE, "bbnav" )

_IELinkClickByText ($oFrame, "Banking") or $oIE as object

only blue and green on SciTe console.

If you use above script you can see the page directly, because is only an example account.

If I have to go the hard way - gather form/frams/link collections with reading text I can do it,

but I thought, there would be a more simple way.

Thanks for your attention, Reinhard

Link to comment
Share on other sites

_IEImgClick does an _IELoadWait by default and because of the frames it gets confused. You need to turn that off and manage the wait state yourself:

#include <IE.au3>
$oIE =  _IECreate("http://domino.s-web.de/ib-demo/login/login.htm?BLZ=&1=")
$oFrame = _IEFrameGetObjByName ( $oIE, "bbpb" )
$oDiv = _IEGetObjByName($oFrame, "KontoNummer")
_IEFormElementSetValue ($oDiv, "Irgendwer");"Test Kunde")
$oDiv = _IEGetObjByName($oFrame, "pin")
_IEFormElementSetValue ($oDiv, "12345")
_IEImgClick($oFrame,"Anmelden", "alt", 0, 0)
_IELoadWait($oIE)
_IENavigate($oIE, "http://domino.s-web.de/ib-demo/banking/feIndex.htm?BLZ=&1=")

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

"...... _IEImgClick does an _IELoadWait by default and because of the frames it gets confused."

Yeah, me toooooo.

Thanks for the very helpful tip.

I'm going on now with my PayPal account.

Hopefully I don't get problems there.

Otherwise can I PM you my pin (if they don't have an example account)?

Thanks again, Reinhard

Edited by ReFran
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...