[arquillian-issues] [JBoss JIRA] (ARQGRA-292) Extend fluent wating API to support page fragments
Lukáš Fryč (JIRA)
jira-events at lists.jboss.org
Tue Sep 3 05:53:03 EDT 2013
[ https://issues.jboss.org/browse/ARQGRA-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12801064#comment-12801064 ]
Lukáš Fryč edited comment on ARQGRA-292 at 9/3/13 5:52 AM:
-----------------------------------------------------------
This is partially resolved by allowing page fragment to implement WebElement:
{code:java}
class PageFragment implements WebElement;
Graphene.waitAjax().until().element(pf).is().visible();
{code}
Further improvement can be achieved by introducing the interface you suggested:
{code:java}
class PageFragment implements Waitable<PageFramentWaitConditions> {
PageFramentWaitConditions getWaitable();
class PageFramentWaitConditions {
void visible() {
...
}
}
}
// obtain conditions
PageFramentWaitConditions cond = Graphene.waitAjax().until().pageFragment(pf).is();
// wait for condition
cond.visible();
{code}
was (Author: lfryc):
This is partially resolved by allowing page fragment to implement WebElement:
{code:java}
class PageFragment implements WebElement;
Graphene.waitAjax().until().element(pf).is().visible();
{code}
Further improvement can be achieved by introducing the interface you suggested:
{code:java}
class PageFragment implements Waitable<PageFragmentWaitable> {
}
class PageFragmentWaitable {
void visible() {
...
}
}
{code}
> Extend fluent wating API to support page fragments
> --------------------------------------------------
>
> Key: ARQGRA-292
> URL: https://issues.jboss.org/browse/ARQGRA-292
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Affects Versions: 2.0.0.Alpha4
> Reporter: Jan Papousek
>
> Provide reasonable interfaces for page fragments to be able to extend fluent API for them, e.g. _Visible_:
> {code}
> Visible pf = ...;
> Graphene.waitAjax().until().pageFragment(pf).is().visible();
> {code}
--
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
More information about the arquillian-issues
mailing list