This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200275 - selenium plugin does not work on 7.0.1
Summary: selenium plugin does not work on 7.0.1
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Selenium (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 02:26 UTC by Masaki Katakai
Modified: 2014-12-09 09:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2011-07-21 02:26:11 UTC
Hi Team,

Does anyone try selenium plugin on 7.0.1? Does it work?

It works on 7.0, but when I use on 7.0.1, selenium session can not start browser by the following exception. It seems that selenium server is running, but can not start it.

I tried it on several machines - Solaris and Windows. I can see the same error. Again, it works on 7.0.

My environment:
NetBeans IDE 7.0.1 (Build 201107160900)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
SunOS 5.11; UTF-8; ja_JP (nb)
Selenium Plugin for Ant project : 1.2

Exception:
java.lang.IllegalArgumentException: resource /customProfileDirCUSTFFCHROME relative to org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher not found.
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
	at com.google.common.io.Resources.getResource(Resources.java:163)
	at org.openqa.selenium.server.browserlaunchers.ResourceExtractor.extractResourcePath(ResourceExtractor.java:37)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.extractProfileFromJar(FirefoxChromeLauncher.java:174)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.makeCustomProfile(FirefoxChromeLauncher.java:216)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launch(FirefoxChromeLauncher.java:82)
	at org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher.launchRemoteSession(FirefoxChromeLauncher.java:412)
	at org.openqa.selenium.server.browserlaunchers.FirefoxLauncher.launchRemoteSession(FirefoxLauncher.java:109)
[catch] at org.openqa.selenium.server.BrowserSessionFactory.createNewRemoteSession(BrowserSessionFactory.java:373)
	at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:125)
	at org.openqa.selenium.server.BrowserSessionFactory.getNewBrowserSession(BrowserSessionFactory.java:87)
	at org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:785)
	at org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:422)
	at org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:393)
	at org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:146)
	at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
	at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
	at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
	at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
	at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
	at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
	at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
	at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
	at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Comment 1 Masaki Katakai 2011-07-21 02:29:20 UTC
When I start selenium server outside NetBeans,

% java -jar ~/.netbeans/7.0/modules/ext/selenium/selenium-server-2.0.jar

It works fine. I can not see any error.

So the problem happens when selenium server is started from NetBeans.
Comment 2 fallenclient 2011-09-01 16:57:42 UTC
Same issue.
Worked fine in 7.0 but launch browser error in 7.0.1.
Specified path to browser in unit tests setup method:
$this->setBrowser("*firefox C:/Program Files (x86)/Mozilla Firefox/firefox.exe");
Still reports unable to launch browser in the output window.
Stop selenium server in netbeans services and run selenium from commandline.
Start test again from netbeans using the same unit test with the browser path specified runs test as expected.
Comment 3 Martin Fousek 2011-09-02 06:38:57 UTC
Thanks for reporting that. I'm going to change registration of Selenium Server totally for NB71 because of this and similar troubles.
Comment 4 Martin Fousek 2012-01-09 18:37:05 UTC
Please could you retry that with new version which should appear on Plugin Portal UC during next few days? Thanks...
Comment 5 Masaki Katakai 2012-01-11 10:21:48 UTC
Thank you Martin for the info. It seems that these plugins are not listed on my NetBeans 7.1 yet. Is this correct? Please let me know once these are ready.
Comment 6 Martin Fousek 2012-01-11 10:28:26 UTC
Yes, it's correct for now since the plugin is not verified for NB70 and NB71. You can download it here http://plugins.netbeans.org/plugin/37739 and install it manually. Anyway your troubles looks to be related configuration or selenium server issue. Server is up-to-date so it should help.
Comment 7 Masaki Katakai 2012-01-11 10:41:25 UTC
Thank you Martin,

Verified these work fine for me. I'm using 1/10 version of selenium server and ant project on NetBeans 7.1 on Windows 7. Great!
Comment 8 Martin Fousek 2012-01-11 10:50:10 UTC
Ok, thanks for letting me know. So closing as fixed.

BTW, these new versions should be available via standard Plugin Portal UC in few days.