Создал мавеновский проект с библиотекой richfaces-selenium. Создал простенький тест.
Тест падает при попытке вызова:
Wait.waitAjax().until(elementPresent.locator(tmpID));
Стек-трейс:
java.lang.RuntimeException: unexpected invocation exception: Context is not initialized at org.jboss.test.selenium.framework.AjaxSeleniumProxy.invoke(AjaxSeleniumProxy.java:113) at $Proxy8.isElementPresent(Unknown Source) at org.jboss.test.selenium.waiting.conditions.ElementPresent.isTrue(ElementPresent.java:72) at org.jboss.test.selenium.waiting.selenium.SeleniumWaiting.until(SeleniumWaiting.java:29) at ru.csbi.testing.jDocFlow.FirefoxTest.googling(FirefoxTest.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:76) at org.testng.internal.Invoker.invokeMethod(Invoker.java:673) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) at org.testng.TestRunner.runWorkers(TestRunner.java:1147) at org.testng.TestRunner.privateRun(TestRunner.java:749) at org.testng.TestRunner.run(TestRunner.java:600) at org.testng.SuiteRunner.runTest(SuiteRunner.java:317) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274) at org.testng.SuiteRunner.run(SuiteRunner.java:223) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039) at org.testng.TestNG.runSuitesLocally(TestNG.java:964) at org.testng.TestNG.run(TestNG.java:900) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174) Caused by: java.lang.IllegalStateException: Context is not initialized at org.jboss.test.selenium.framework.AjaxSeleniumProxy.invoke(AjaxSeleniumProxy.java:106) ... 29 more
Не пойму причем тут контекст. Кто-нибудь сталкивался с подобной проблемой? где копать? %)