[arquillian-issues] [JBoss JIRA] Commented: (ARQ-434) Enable handling of multiple AjaxSelenium instances in one class

Karel Piwko (JIRA) jira-events at lists.jboss.org
Fri Sep 23 15:42:26 EDT 2011


    [ https://issues.jboss.org/browse/ARQ-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630343#comment-12630343 ] 

Karel Piwko commented on ARQ-434:
---------------------------------

If I read this correctly, Arquillian Drone can handle configuration, creation and destruction of multiple AjaxSelenium instances. However, it would be up to user to switch to correct context manually by his own.

Suppose following:

{code:java}
@Drone AjaxSelenium b1;

@Test
public void test(@Drone AjaxSelenium b2) {
    // we can't switch to b2, as the first method might be
    b1.click(...);
    // no way how to check method body
}
{code}

The only other idea I got so far is that AjaxSelenium will set correct context in each call, e.g.

{code:java}
public class AjaxSelenium {

   public void click(...) {
       AjaxSeleniumContext.setContext(this);
       // do the click()
   }
}
{code}

Lukas, what do you think?

> Enable handling of multiple AjaxSelenium instances in one class
> ---------------------------------------------------------------
>
>                 Key: ARQ-434
>                 URL: https://issues.jboss.org/browse/ARQ-434
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Drone
>            Reporter: Lukáš Fryč
>            Assignee: Karel Piwko
>            Priority: Critical
>
> Ajocado should have the same possibilities as Selenium and WebDriver browsers.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the arquillian-issues mailing list