[arquillian-issues] [JBoss JIRA] (ARQGRA-438) Using multiple qualifiers for @Page
Stefan Miklosovic (JIRA)
issues at jboss.org
Tue May 6 07:17:58 EDT 2014
Stefan Miklosovic created ARQGRA-438:
----------------------------------------
Summary: Using multiple qualifiers for @Page
Key: ARQGRA-438
URL: https://issues.jboss.org/browse/ARQGRA-438
Project: Arquillian Graphene
Issue Type: Enhancement
Components: core
Affects Versions: 2.1-Tracking
Reporter: Stefan Miklosovic
Priority: Optional
In case I have one application deployed to multiple devices (apks to Android) and I use @Page abstraction, I end up with this:
{code}
@Drone @Mobile AndroidDriver mobile;
@Drone @Tablet AndroidDriver tablet;
@Page @Mobile SomePage mobilePage;
@Page @Tablet SomePage tabletPage;
{code}
Event that page is same I have to declare it twice. It could be done as
{code}
@Page @Mobile @Tablet SomePage page;
{code}
In this case, there has to be some distinction between webdrivers and it seems this could be done on deployment level when you use @OperatesOnDeployment annotaion on webdriver injection. In case you have some test method which uses the same @OperatesOnDeployment value, Graphene will inject "right" driver to handle that @Page bean.
Example:
{code}
@Drone @Tablet @OperatesOnDeployment("android_1") AndroidDriver tablet;
@Drone @Mobile @OperatesOnDeployment("android_2") AndroidDriver mobile;
@Page @Tablet @Mobile SomePage somePage;
@Test
@OperatesOnDeployment("android_1")
public void test()
{
somePage will be backed by @Tablet browser
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the arquillian-issues
mailing list