Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Internal Web Browser is not available when using SWTBot(Missing functionality when running SWTBot headlessly)
Internal Web Browser is not available when using SWTBot [message #559515] Thu, 16 September 2010 19:48 Go to next message
Gabriel Petrovay is currently offline Gabriel Petrovay
Messages: 42
Registered: July 2009
Member
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 #560204 is a reply to message #559515] Tue, 21 September 2010 10:38 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
I'm unaware of how the browser loading works in eclipse.

It appears that the org.eclipse.ui.browserSupport extension is not
set/loaded/initialized correctly.

A breakpoint in WorkbenchBrowserSupport.getActiveSupport() might help
eliminating these possibilities.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 9/16/10 4:48 PM, Gabriel Petrovay wrote:
> 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 Go to previous message
Gabriel Medina is currently offline Gabriel Medina
Messages: 1
Registered: October 2013
Junior Member
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

Previous Topic:Target Platform configuration problem
Next Topic:Warnings on SWTBot tests
Goto Forum:
  


Current Time: Tue Jul 29 00:51:45 EDT 2014

Powered by FUDForum. Page generated in 0.03393 seconds