Internal Web Browser is not available when using SWTBot [message #559515] |
Thu, 16 September 2010 19:48  |
Eclipse User |
|
|
|
Hi,
I found another problem when running SWTBot in headless mode. See the 3 Scenarios below:
-----------------------------
Scenario 1:
SWTBot started from Eclipse testing the plug-ins in the workspace.
During the test I open the preference page: General Web Browser. The page displays the "Use internal web browser" as AVAILABLE.
-----------------------------
Scenario 2:
SWTBot started headless with the same plug-ins as in the previous launch configuration but wrapped in an Eclipse Product.
During the test I open the preference page: General Web Browser. The page shows the "Use internal web browser" as DISABLED (greyed out).
-----------------------------
Scenario 3:
The eclipse product in the previous scenario is opened manually and the "Use internal web browser" preference is again AVAILABLE.
-----------------------------
The only difference between 2 and 3 is the way I start eclipse. Directly through eclipse exe or through SWTBot.
Scenario 2 has a problem it disables some functionality.
I also compared the configuration/org.eclipse.equinox.simpleconfigurator/bundles .info after the start of scenarios 2 and 3 and the loaded plug-ins are the same.
I also tried to programmatically access the Browser thinking that a plug-in is not loaded using the code:
IWorkbenchBrowserSupport browserSupport = PlatformUI.getWorkbench().getBrowserSupport();
isAvailable = browserSupport.isInternalWebBrowserAvailable();
This also tells me that the browser is not available.
Any ideas why this?
Thanks,
Gabriel
|
|
|
|
Re: Internal Web Browser is not available when using SWTBot [message #1123749 is a reply to message #559515] |
Wed, 02 October 2013 18:02  |
Eclipse User |
|
|
|
On Ubuntu 13.04 using Eclipse it automagically worked, I was not sure which webkit I was missing, so I installed all that seemed relevant, if someone has pinpointed which it is, please comment,
Regards,
Gabriel Medina
aptitude install libqt4-webkit libqt5webkit5 libqtscript4-webkit libqtwebkit4 libswt-webkit-gtk-3-jni libwebkitgtk-1.0-0 libwebkitgtk-3.0-0
|
|
|
Powered by
FUDForum. Page generated in 0.04137 seconds