|Re: Possible to clone browser control? [message #668382 is a reply to message #668267]
||Thu, 05 May 2011 13:29
| Grant Gayed
Registered: July 2009
I can't think of a way that this would be done. With Browser.evaluate()
of the current page's state, but there isn't a generic way to just create a
clone of the whole thing.
"Gary" <email@example.com> wrote in message
> Context: We are using the SWT Browser control to programatically navigate
> web sites. When a given page has a list of links, we click one, listen
> for the BeforeNavigate event, abort the current navigation, create a new
> Browser control, and then navigate by setting the URL in the new Browser
> control. This leaves the page with the original list of links intact so we
> can click the next link and repeat the process.
> This works fine for many sites, but doesn't work well in certain cases
> (e.g. when link doesn't generate HTTP request because it is internal
> Question: Is it possible to somehow clone an existing Browser control
> instead of creating a new one? The cloned Browser would need to contain
> not only the existing page content, but also any registered DOM event
> the browser.
Powered by FUDForum
. Page generated in 0.02418 seconds