[JBoss JIRA] (ARQGRA-357) Support for setting custom defaultElementLocatingStrategy
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-357?page=com.atlassian.jira.plugin... ]
Lukáš Fryč edited comment on ARQGRA-357 at 9/10/13 8:29 AM:
------------------------------------------------------------
Let's support just common types defined by {{How}} for 2.0.
Note that it doesn't make sense to support jQuery since the {{locator}} diverged from field name won't be more useful than e.g. {{tagName}} type:
{code}
@FindBy
private WebElement input;
-- > By.tagName("input")
-- > ByJQuery.selector("input")
{code}
was (Author: lfryc):
Let's support just common types defined by {{How}} for now.
Note that it doesn't make sense to support jQuery since the {{locator}} diverged from field name won't be more useful than e.g. {{tagName}} type:
{code}
@FindBy
private WebElement input;
-- > By.tagName("input")
-- > ByJQuery.selector("input")
{code}
> Support for setting custom defaultElementLocatingStrategy
> ---------------------------------------------------------
>
> Key: ARQGRA-357
> URL: https://issues.jboss.org/browse/ARQGRA-357
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Components: core
> Affects Versions: 2.0.0.Alpha5
> Reporter: Juraj Húska
> Priority: Minor
> Fix For: 2.0.0.Beta1
>
>
> Since we support extending the locating strategy, e.g. {{FindByJQuery}}, we should also support setting of such custom locating strategy as:
> {{defaultLocatingStrategy}} for all FindBys.
> The non ability to do so is hidden [here|https://github.com/arquillian/arquillian-graphene/blob/master/impl/s...].
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months
[JBoss JIRA] (ARQGRA-308) Should throw exception if page fragment not instantiable
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-308?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-308:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Should throw exception if page fragment not instantiable
> --------------------------------------------------------
>
> Key: ARQGRA-308
> URL: https://issues.jboss.org/browse/ARQGRA-308
> Project: Arquillian Graphene
> Issue Type: Bug
> Affects Versions: 2.0.0.Alpha4
> Reporter: Bernard Labno
> Assignee: Juraj Húska
> Fix For: 2.0.0.Beta1
>
>
> If page fragment is inner final class then it's not injected into field annotated with @FindBy and no exception is thrown.
> Graphene should throw exception that desired class cannot be instantiated.
> Right now user spends lots of time debugging and wondering if the selector is wrong. It's hard to find out that it's the "final" word to be blamed here:
> public static final class InvitedSupplier
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 7 months