From: Ahmed A. <asa...@ya...> - 2015-05-14 17:40:22
|
Hi Teryl, How about webClient.setActiveXObjectMap() See its test case in: http://htmlunit.sourceforge.net/xref-test/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLObjectElementTest.html Yours,Ahmed From: Teryl Taylor <ter...@gm...> To: htm...@li... Sent: Thursday, May 14, 2015 5:32 PM Subject: [Htmlunit-user] HTMLObjectElement Question Hi everyone, Great job with HTMLUnit. Just learning it and it seems like a nice stable piece of software. I have a question about some javascript I'm running in a page. a snippet is as follows: var obj = window.document.createElement("object"); obj.classid = javaClassIds[k]; window.document.body.appendChild(obj); As expected, this code creates an HTMLObjectElement in Java. However, the second line calls the "put" function on HTMLObjectElement rather than setClassid. I'd like to build an Active X object for the classid, and use it to handle the custom attributes, which seems like it would work if setClassid was called in the above scenario. Is this a bug or the intended functionality? Is there any easy way to force setClassid to be called? Best, Teryl |