|
Re: Possible to clone browser control? [message #668382 is a reply to message #668267] |
Thu, 05 May 2011 13:29 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
Hi Gary,
I can't think of a way that this would be done. With Browser.evaluate()
it's possible to execute some javascript that can query for specific aspects
of the current page's state, but there isn't a generic way to just create a
clone of the whole thing.
Grant
"Gary" <ghirschhorn@fetch.com> wrote in message
news:ips4i3$b80$1@news.eclipse.org...
> 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
> javascript).
> 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
> handlers (e.g. javascript) and possibly any other dynamic state created by
> the browser.
>
> Thanks,
> Gary
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07014 seconds