{"action":"created","issue":{"url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/446","repository_url":"https://api.github.com/repos/FluentLenium/FluentLenium","labels_url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/446/comments","events_url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/446/events","html_url":"https://github.com/FluentLenium/FluentLenium/issues/446","id":196090160,"number":446,"title":"Page cannot be instantiated","user":{"login":"BogdanJelerRO","id":24609910,"avatar_url":"https://avatars.githubusercontent.com/u/24609910?v=3","gravatar_id":"","url":"https://api.github.com/users/BogdanJelerRO","html_url":"https://github.com/BogdanJelerRO","followers_url":"https://api.github.com/users/BogdanJelerRO/followers","following_url":"https://api.github.com/users/BogdanJelerRO/following{/other_user}","gists_url":"https://api.github.com/users/BogdanJelerRO/gists{/gist_id}","starred_url":"https://api.github.com/users/BogdanJelerRO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BogdanJelerRO/subscriptions","organizations_url":"https://api.github.com/users/BogdanJelerRO/orgs","repos_url":"https://api.github.com/users/BogdanJelerRO/repos","events_url":"https://api.github.com/users/BogdanJelerRO/events{/privacy}","received_events_url":"https://api.github.com/users/BogdanJelerRO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-12-16T15:53:34Z","updated_at":"2016-12-20T11:13:26Z","closed_at":null,"body":"I am using TestNG + Fluentlenium TestNG 3.0.4 . I have a BaseTestNG as a baseclass from which I derive all my TestSuites. \r\n\r\nWhen I try to instantiate a page using the annotation @Page , I get this error \r\n\r\nI need to mention some very important aspects like : \r\n1. The Driver lifecycle is set on JVM. I have problem with just one page, after I already executed one test which has also one Page instantiated. \r\n2. The error occures in the beforeMethod of the second test \r\n3. I have no dedicated behaviour for the beforeMethod in my BaseTestNG class \r\n\r\norg.fluentlenium.core.inject.FluentInjectException: com.elektrobit.sota.dashboard.SOTAPage can't be instantiated.\r\n\tat org.fluentlenium.core.inject.DefaultContainerInstanciator.newInstance(DefaultContainerInstanciator.java:32)\r\n\tat org.fluentlenium.core.inject.FluentInjector.initChildrenContainers(FluentInjector.java:189)\r\n\tat org.fluentlenium.core.inject.FluentInjector.inject(FluentInjector.java:114)\r\n\tat org.fluentlenium.core.inject.FluentInjector.inject(FluentInjector.java:106)\r\n\tat org.fluentlenium.core.FluentDriver.inject(FluentDriver.java:64)\r\n\tat org.fluentlenium.core.inject.ContainerFluentControl.inject(ContainerFluentControl.java:17)\r\n\tat org.fluentlenium.adapter.FluentAdapter.initFluent(FluentAdapter.java:109)\r\n\tat org.fluentlenium.adapter.FluentTestRunnerAdapter.starting(FluentTestRunnerAdapter.java:95)\r\n\tat org.fluentlenium.adapter.testng.FluentTestNg.beforeMethod(FluentTestNg.java:70)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:100)\r\n\tat org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:515)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:216)\r\n\tat org.testng.internal.Invoker.invokeMethod(Invoker.java:590)\r\n\tat org.testng.internal.Invoker.invokeTestMethod(Invoker.java:811)\r\n\tat org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1137)\r\n\tat org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:129)"},"comment":{"url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/comments/268217763","html_url":"https://github.com/FluentLenium/FluentLenium/issues/446#issuecomment-268217763","issue_url":"https://api.github.com/repos/FluentLenium/FluentLenium/issues/446","id":268217763,"user":{"login":"filipcynarski","id":6398578,"avatar_url":"https://avatars.githubusercontent.com/u/6398578?v=3","gravatar_id":"","url":"https://api.github.com/users/filipcynarski","html_url":"https://github.com/filipcynarski","followers_url":"https://api.github.com/users/filipcynarski/followers","following_url":"https://api.github.com/users/filipcynarski/following{/other_user}","gists_url":"https://api.github.com/users/filipcynarski/gists{/gist_id}","starred_url":"https://api.github.com/users/filipcynarski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipcynarski/subscriptions","organizations_url":"https://api.github.com/users/filipcynarski/orgs","repos_url":"https://api.github.com/users/filipcynarski/repos","events_url":"https://api.github.com/users/filipcynarski/events{/privacy}","received_events_url":"https://api.github.com/users/filipcynarski/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T11:13:26Z","updated_at":"2016-12-20T11:13:26Z","body":"@BogdanJelerRO I think you should use Selenium 3, we are not using Selenium 2 in FluentLenium. I'm also using Selenium 3.0.1 with FluentLenium 3.0.5 in my company where we're maintaining > 500 test suite. So it should work. I may suggest dependencies check in your project. You can start using maven if you are not using it yet to detect such conflicts and issues by dependency tree feature for example."}}
{"actor":{"display_login":"filipcynarski"}}