Details
-
Bug
-
Resolution: Done
-
Major
-
drone_1.1.1.Final
-
None
-
Workaround Exists
-
-
Low
Description
Drone webdriver is not created during @BeforeClass, however is created during @Before or if called by GrapheneContext.getProxy()
The following does NOT work:
@RunWith(Arquillian.class) public class TestDroneLogin { @Drone private static WebDriver driver; @BeforeClass public static void setup(){ //GrapheneContext.getProxy().navigate().to("http://google.com"); driver.navigate().to("http://google.com"); } @Test public void testInput(){ driver.findElement(By.cssSelector("input#gbqfq")); } }
However, if I use GrapheneContext.getProxy() instead of driver, everything works as expected:
@BeforeClass public static void setup(){ GrapheneContext.getProxy().navigate().to("http://google.com"); }
ALSO, if @Before is used then Drone webdriver is created as expected, so this problem is specific to @BeforeClass
Attachments
Issue Links
- is blocked by
-
ARQ-754 Change the way how Drone context is initialized
- Closed