Hello, I have the following setup:
elsif ENV["HEADLESS"] then include Selenium server = Selenium::Server.new("C:/Users/dan.pop/RubymineProjects/xxx/ features/support/selenium-server-standalone-2.2.0.jar", :background => true) server.start capabilities = WebDriver::Remote::Capabilities.htmlunit(:javascript_enabled => true) BROWSER = Watir::Browser.new(:remote, :url => 'http://127.0.0.1:4444/ wd/hub', :desired_capabilities => capabilities) ... when i run my tests with Headless profile i receive the following error: Selenium::WebDriver::Error::UnhandledError: Prefix must resolve to a namespace: fb (org.apache.xpath.domapi.XPathStylesheetDOM3Exception) [remote server] org.apache.xpath.compiler.XPathParser(XPathParser.java):655:in `errorForDOM3' [remote server] org.apache.xpath.compiler.Lexer(Lexer.java):647:in `mapNSTokens' [remote server] org.apache.xpath.compiler.Lexer(Lexer.java):365:in `tokenize' [remote server] org.apache.xpath.compiler.Lexer(Lexer.java):98:in `tokenize' [remote server] org.apache.xpath.compiler.XPathParser(XPathParser.java):112:in `initXPath' [remote server] com.gargoylesoftware.htmlunit.html.xpath.XPathAdapter(XPathAdapter.java): 80:in `<init>' [remote server] com.gargoylesoftware.htmlunit.html.xpath.XPathUtils(XPathUtils.java): 128:in `evaluateXPath' [remote server] com.gargoylesoftware.htmlunit.html.xpath.XPathUtils(XPathUtils.java): 72:in `getByXPath' [remote server] com.gargoylesoftware.htmlunit.javascript.host.html.HTMLCollection(HTMLCollection.java): 261:in `computeElements' [remote server] com.gargoylesoftware.htmlunit.javascript.host.html.HTMLCollection(HTMLCollection.java): 248:in `getElements' [remote server] com.gargoylesoftware.htmlunit.javascript.host.html.HTMLCollection(HTMLCollection.java): 429:in `jsxGet_length' [remote server] sun.reflect.GeneratedMethodAccessor9():-1:in `invoke' [remote server] sun.reflect.DelegatingMethodAccessorImpl():-1:in `invoke' [remote server] java.lang.reflect.Method():-1:in `invoke' [remote server] net.sourceforge.htmlunit.corejs.javascript.MemberBox(MemberBox.java): 172:in `invoke' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptableObject(ScriptableObject.java): 2363:in `getImpl' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptableObject(ScriptableObject.java): 328:in `get' [remote server] com.gargoylesoftware.htmlunit.javascript.SimpleScriptable(SimpleScriptable.java): 77:in `get' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptableObject(ScriptableObject.java): 1963:in `getProperty' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime(ScriptRuntime.java): 1506:in `getObjectProp' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime(ScriptRuntime.java): 1492:in `getObjectProp' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 1399:in `interpretLoop' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 845:in `interpret' [remote server] net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction(InterpretedFunction.java): 164:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.NativeArray(NativeArray.java): 1559:in `iterativeMethod' [remote server] net.sourceforge.htmlunit.corejs.javascript.NativeArray(NativeArray.java): 340:in `execIdCall' [remote server] net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject(IdFunctionObject.java): 129:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 1702:in `interpretLoop' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 845:in `interpret' [remote server] net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction(InterpretedFunction.java): 164:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.NativeArray(NativeArray.java): 1559:in `iterativeMethod' [remote server] net.sourceforge.htmlunit.corejs.javascript.NativeArray(NativeArray.java): 340:in `execIdCall' [remote server] net.sourceforge.htmlunit.corejs.javascript.IdFunctionObject(IdFunctionObject.java): 129:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 1702:in `interpretLoop' [remote server] net.sourceforge.htmlunit.corejs.javascript.Interpreter(Interpreter.java): 845:in `interpret' [remote server] net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction(InterpretedFunction.java): 164:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.ContextFactory(ContextFactory.java): 429:in `doTopCall' [remote server] com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory(HtmlUnitContextFactory.java): 269:in `doTopCall' [remote server] net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime(ScriptRuntime.java): 3162:in `doTopCall' [remote server] net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction(InterpretedFunction.java): 162:in `call' [remote server] com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine(JavaScriptEngine.java): 559:in `callFunction' [remote server] com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine $4(JavaScriptEngine.java):524:in `doRun' [remote server] com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine $HtmlUnitContextAction(JavaScriptEngine.java):595:in `run' [remote server] net.sourceforge.htmlunit.corejs.javascript.Context(Context.java): 537:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.ContextFactory(ContextFactory.java): 538:in `call' [remote server] com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine(JavaScriptEngine.java): 531:in `callFunction' [remote server] com.gargoylesoftware.htmlunit.html.HtmlPage(HtmlPage.java):906:in `executeJavaScriptFunctionIfPossible' [remote server] com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer(EventListenersContainer.java): 164:in `executeEventListeners' [remote server] com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer(EventListenersContainer.java): 223:in `executeBubblingListeners' [remote server] com.gargoylesoftware.htmlunit.javascript.host.Node(Node.java):686:in `fireEvent' [remote server] com.gargoylesoftware.htmlunit.html.HtmlElement $2(HtmlElement.java):885:in `run' [remote server] net.sourceforge.htmlunit.corejs.javascript.Context(Context.java): 537:in `call' [remote server] net.sourceforge.htmlunit.corejs.javascript.ContextFactory(ContextFactory.java): 538:in `call' [remote server] com.gargoylesoftware.htmlunit.html.HtmlElement(HtmlElement.java): 890:in `fireEvent' [remote server] com.gargoylesoftware.htmlunit.html.HtmlPage(HtmlPage.java):1156:in `executeEventHandlersIfNeeded' [remote server] com.gargoylesoftware.htmlunit.html.HtmlPage(HtmlPage.java):208:in `initialize' [remote server] com.gargoylesoftware.htmlunit.WebClient(WebClient.java):436:in `loadWebResponseInto' [remote server] com.gargoylesoftware.htmlunit.WebClient(WebClient.java):307:in `getPage' [remote server] com.gargoylesoftware.htmlunit.WebClient(WebClient.java):369:in `getPage' [remote server] org.openqa.selenium.htmlunit.HtmlUnitDriver(HtmlUnitDriver.java): 324:in `get' [remote server] org.openqa.selenium.htmlunit.HtmlUnitDriver(HtmlUnitDriver.java): 311:in `get' [remote server] sun.reflect.NativeMethodAccessorImpl():-2:in `invoke0' [remote server] sun.reflect.NativeMethodAccessorImpl():-1:in `invoke' [remote server] sun.reflect.DelegatingMethodAccessorImpl():-1:in `invoke' [remote server] java.lang.reflect.Method():-1:in `invoke' [remote server] org.openqa.selenium.support.events.EventFiringWebDriver $2(EventFiringWebDriver.java):92:in `invoke' [remote server] $Proxy1():-1:in `get' [remote server] org.openqa.selenium.support.events.EventFiringWebDriver(EventFiringWebDriver.java): 143:in `get' [remote server] org.openqa.selenium.remote.server.handler.ChangeUrl(ChangeUrl.java): 39:in `call' [remote server] org.openqa.selenium.remote.server.handler.ChangeUrl(ChangeUrl.java): 1:in `call' [remote server] java.util.concurrent.FutureTask$Sync():-1:in `innerRun' [remote server] java.util.concurrent.FutureTask():-1:in `run' [remote server] java.util.concurrent.ThreadPoolExecutor$Worker():-1:in `runTask' [remote server] java.util.concurrent.ThreadPoolExecutor$Worker():-1:in `run' [remote server] java.lang.Thread():-1:in `run' ./features/support/helpers/page_object_helper.rb:56:in `goto' ./features/support/initialize.rb:8:in `initialize' ./features/support/env.rb:33:in `new' ./features/support/env.rb:33:in `on' ./features/support/env.rb:29:in `visit' ./features/step_definitions/search_on_homepage_steps.rb:2:in `/^I am on the xxx home page$/' C:\Users\dan.pop\RubymineProjects\xxx\features \search_on_homepage.feature:7:in `Given I am on the xxx home page' Can you help me start the headless browser ? Didn't have problems when i ran with Celerity but i don't wan't to switch to jruby. Thank you, Dan -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com