(please, don't help with ask for a minimal testcase, i don't know what you meen, i only wan't help with a answer to my Problem. Sorry, i don't have access to the javascript of this Onlinebanking Website. I can only give you my login credentials to have a look on the original site.)
I have a Frameset like this:
<frameset id="frameSet_main" border="0" framespacing="0" frameborder="0" cols="*">
<frameset onload="resize('TL')" id="frameSet1" border="0" framespacing="0" frameborder="0" rows="155,*,20">
<frame onload="checkFrameValidity_frame_top();" title="top menu frame" marginheight="0" marginwidth="0" scrolling="no" noresize="noresize" src="RRMNU05.html" name="frame_top"/>
<frameset id="frameSet2" cols="185,*">
<frame onload="checkFrameValidity_frame_menu();" src="images/loading.gif" title="left menu frame" scrolling="" marginheight="0" marginwidth="0" noresize="true" target="main" name="frame_menu"/>
<frameset id="setRight" cols="*,3">
<frameset id="entityframeset" rows="0,*">
<frame onload="checkFrameValidity_entityframe();" frameborder="0" noresize="true" scrolling="no" marginheight="0" marginwidth="0" id="entityframe" name="entityframe"/>
<frameset id="dataframe" rows="0,*">
<frame onload="checkFrameValidity_messageFrame();" frameborder="0" noresize="true" scrolling="no" marginheight="0" marginwidth="0" name="messageFrame" src="display_message.htm"/>
<frame onload="checkFrameValidity_frame_txn();addFocus ();" border="0" marginheight="0" marginwidth="0" scrolling="auto" src="images/loading.gif" name="frame_txn"/>
</frameset>
</frameset>
</frameset>
</frameset>
<frame onload="checkFrameValidity_footerframe();" src="footer.htm" name="frame_footer" scrolling="no" marginwidth="0" marginheight="0" border="0" noresize="true" title="footer frame"/>
</frameset>
<span id="VBar" style="position: absolute; top: 0px; left: 0px; height: 0px; width: 2px; background: silver; border-left: 1px dotted black; display: none;">
</span>
</frameset>
When i want to get the Content of Frame "messageFrame", all is fine and i get the HTML-Code, because the src-Attribute from this Frame is:
src="display_message.htm"
The Problem is, i want the Page from the Frame "frame_txn" and every Time i get only the Image from the src-Attribute from this Frame:
src="images/loading.gif"
as a UnexceptedPage ...
All Tests with the Workarounds that i know are not working, like:
WebClient syncWebClient = new WebClient(BrowserVersion.CHROME);
syncWebClient.getOptions().setJavaScriptEnabled(true);
syncWebClient.setAjaxController(new NicelyResynchronizingAjaxController());
syncWebClient.waitForBackgroundJavaScriptStartingBefore(10000);
syncWebClient.waitForBackgroundJavaScript(50000);
.....
The Frame with the "html-Src" is working with this Code after Page-GET:
FrameWindow frameTXN = pageContent.getFrameByName("messageFrame");
Page frameTXNpage = frameTXN.getEnclosedPage();
System.out.println("frameTXNpage: " + frameTXNpage);
System.out.println("frameTXNpageXML:\n" + ((HtmlPage) frameTXNpage).asXml());
This Code for the Frame with the "Image-Src" brings every Time only the Image as UnexceptedPage on this Code:
FrameWindow frameTXN = pageContent.getFrameByName("frame_txn");
Page frameTXNpage = frameTXN.getEnclosedPage();
System.out.println("frameTXNpage: " + frameTXNpage);
System.out.println("frameTXNpageXML:\n" + ((HtmlPage) frameTXNpage).asXml());
Please, every body help me ...
Or is this a big Bug in HTMLUnit?
i think this is my problem too: stackoverflow.com/questions/20315330/… then htmlunit is to hard to the bad javascript-code from bank of scotland, because i get many exceptions like this befor the main page is loading
Enclosed exception:
net.sourceforge.htmlunit.corejs.javascript.EvaluatorException: No node attached to this object (script in banking.bankofscotland.de/netbankingde/internet from (1, 598) to (1762, 10)#1700)
In normal browser is the page working, because is more flexible then hmtlunit that can't parse a page like this ...
Greats
Hi Sebastian
(please, don't help with ask for a minimal testcase, i don't know what you meen, i only wan't help with a answer to my Problem. Sorry, i don't have access to the javascript of this Onlinebanking Website. I can only give you my login credentials to have a look on the original site.)
There is some description for bug reports.
* http://htmlunit.sourceforge.net/submittingBugs.html
* http://htmlunit.sourceforge.net/submittingJSBugs.html
Outside of this i'm not sure, what your expectations for open source projects are. If you have a look at OpenHUB (https://www.openhub.net/p/HtmlUnit/estimated_cost) you might notice that you get source code for $ 4,640,616 for free (this does not include the used libraries). This model only works, iff all the users are donating back some time/effort to the project. Usualy they have to spend some quality time with debugging there problem down to the root cause to give us a chance to fix this. Thats more or less the way this kind of projects are working.
Regarding your problem:
Can you please send your code (without credentials - luckily i have an accont for this bank also ;-) and i will try to reproduce your problem. But to not expect a quick solution because there is far too much work on my desk.
If you need get faster help you can try to buy support (http://htmlunit.sourceforge.net/professionalSupport.html).
Hopes that helps a bit for the moment, cross your fingers the BoS page seems to be a real monster....
Hi Sebastian,
have done my usual simple test; have written a Wetator test that tries to login to the BoS page. The tests works fine (with the latest HtmlUnit code) and i was able to reach the page 'Sicherheitsfrage'.
Of course i got some js errors. Do you face your problem before or after this page?
If you like we can continue this discussion by private mail (and maybe in german).
Hi,
yes is right. The Login and the Security Question+Answer (Sicherheits- Frage+Antwort) are working perfect ...
The Problem is the "frame_txn" from the Mainpage "after" the Login is done ...
I want to get the Content of this Frame:
<frame onload="checkFrameValidity_frame_txn();addFocus ();" border="0" marginheight="0" marginwidth="0" scrolling="auto" src="images/loading.gif" name="frame_txn"/>after the Login.
That is all what i say at all time.
The Frame bevor with the src="display_message.htm" working perfect.
This is my private Mail.German is my language ;)
Last edit: Sebastian Richter 2016-08-25
Please send me a mail from you private account to my one.
is here any new info? on Version 2.24 the problem still exist ... :(
Sorry but i found no time to work on that. And i fear it will be the same for the next weeks....
Last edit: RBRi 2019-03-07
don't worry, but don't forget it ;) greats
is here any new info? on Version 2.25 the problem still exist ... greats
is here any new info? on Version 2.28 the problem still exist ... greats
Or if is not poosible with HTMLUnit? I think the JS-Support of HTMLUnit is bad and goes very worse in the future because is Rhino-Engine.
I think we have to change to PhantomJS or Chrome-Headless...
Or not?
Sorry nothing new so far...
Hi,
it seems the issue is still present in version 2.31. Are the any news? Will it be implemented at all?
Best regards