I placed @Test before public class FacebookLoginTest exactly as you mentioned
But still the error is displayed on @Test as The annotation @Test is disallowed for this location
Somewhere its related to junit jar files i guess, can you provide some other solution?
public class FacebookLoginTest { @Test
public void setUP() {
DesiredCapabilities capabilities = new DesiredCapabilities();
(Will write the code further here…)
}
}
Thanks guys for suggestion,although I have removed all the dependencies and installed eclipse recofiured it again,if i encounter this same issue I will post here
The @Test annotation is always must placed in between class and method, It should declare the before the method. You want to take the method them put the @Test annotation without method the class annotation is not accepted.