I am trying to use @BeforeSuite after instantiation of webdriver in Arquillian
I am just give a example below
@RunAsClient
public class GoogleTest extends Arquillian {
@Drone
private WebDriver driver;
@ArquillianResource
private URL contextRoot;
@Page
Google googlePage;
@BeforeSuite
public void init() {
driver.get(contextRoot.toString());
}
@Test
public void googleSearchTest() {
System.out.println(contextRoot);
googlePage.searchFor("Arquillian Graphene");
}
}
But it is getting null pointer exception because driver not instantiate. So My question is how to call my @BeforeSuite after Arquillian defined @BeforeSuite.
I don't want to do the webdriver instantiation part, I prefer it should be handled by Arquillian @Drone annotation and I will execute my own @BeforeSuite after that.