Iframe issue with JExplorer 32.3.5

20 views
Skip to first unread message

Yossi Bitton

unread,
Mar 5, 2018, 8:06:54 AM3/5/18
to jexplor...@teamdev.com

Hi

 

I am evaluating JExplorer and I face some issue with set value to object inside iframe

I want to simulate a user action of setting a value inside textbox inside iframe, I searched the Forum but none of the answers are valid anymore

 

This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,

Vitaly Eremenko

unread,
Mar 5, 2018, 8:44:41 AM3/5/18
to Yossi Bitton, jexplor...@teamdev.com
Hello Yossi,

Unfortunately, the current implementation of JExplorer doesn't wrap IFrame via DOM model. But you still have a possibility to do it using JavaScript.

For example, let's assume that you have HTML with an IFrame named "myframe" and this frame has an object named "myobject". Java code, in this case, will look like:

browser.addNavigationListener(new NavigationAdapter() {
@Override
public void mainDocumentCompleted(Browser browser, String url) {
super.navigationCompleted(browser, url);
browser.executeScript("window.frames[\"myframe\"].document.getElementId(\'myobjecy\').setValue(\"myvalue\");");
}
});
Regards,
Vitaly.
  
--
You received this message because you are subscribed to the Google Groups "JExplorer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jexplorer-for...@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/jexplorer-forum/2295A63D8D84B74EA15D1917D7454304019A43E584%40ILRAADAGBE3.corp.amdocs.com.
--
---
Vitaly Eremenko
 
Java Integration Technologies | TeamDev, Ltd.
 
Reply all
Reply to author
Forward
0 new messages