[JBoss JIRA] (ARQGRA-295) Provide more convenient way for Interceptors registration/unregistration
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-295?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-295:
------------------------------
Fix Version/s: 2.2-Tracking
(was: 2.1-Tracking)
> Provide more convenient way for Interceptors registration/unregistration
> -------------------------------------------------------------------------
>
> Key: ARQGRA-295
> URL: https://issues.jboss.org/browse/ARQGRA-295
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api, core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Juraj Húska
> Priority: Minor
> Fix For: 2.2-Tracking
>
>
> It would be nice to have a more simple way of registering/unregistering Interceptors.
> Currently this is supported:
> {code}
> GrapheneProxyInstance proxy = (GrapheneProxyInstance) webdriver;
> proxy.registerInterceptor(new SearchContextInterceptor());
> {code}
> It would be nice to have something like:
> {code}
> Graphene.registerInterceptor(new SearchContextInterceptor());
> {code}
> It will be also good to choose class and method which will be intercepted.
> The above mentioned is just minimum.
> IMHO it would be awesome to provide way how to register interceptors like it is done in Java EE:
> {code}
> @Interceptor(MyCustomInterceptor.class)
> public void testFooBar() {
> ...
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQGRA-226) graphene-webdriver-ftest cleanup for reference usage
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-226?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-226:
------------------------------
Fix Version/s: 2.2-Tracking
(was: 2.1-Tracking)
> graphene-webdriver-ftest cleanup for reference usage
> ----------------------------------------------------
>
> Key: ARQGRA-226
> URL: https://issues.jboss.org/browse/ARQGRA-226
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Reporter: Lukáš Fryč
> Priority: Trivial
> Fix For: 2.2-Tracking
>
>
> {{graphene-webdriver-ftest}} should be used as reference usage for Graphene, thus we need to:
> * remove dependency on {{arquillian-test-impl-base}}
> * remove dependencies which are commented out
> * add comments
> ** on depchain - it brings all the dependencies
> ** on arquillian-junit-standalone - explain what dependencies might be used instead {{arquillian-{testng,junit}-{standalone,container}}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months
[JBoss JIRA] (ARQGRA-417) Support for automatic scrolling to element before its usage
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-417?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-417:
------------------------------
Fix Version/s: 2.2-Tracking
(was: 2.1-Tracking)
> Support for automatic scrolling to element before its usage
> -----------------------------------------------------------
>
> Key: ARQGRA-417
> URL: https://issues.jboss.org/browse/ARQGRA-417
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core
> Affects Versions: 2.0.1.Final
> Reporter: Juraj Húska
> Priority: Minor
> Fix For: 2.2-Tracking
>
>
> It would be nice if Graphene supports automatic scrolling of browser window to {{WebElement}} / Page Fragment before its is used.
> It can be useful for interactions with various popups web components: contextMenu, tooltip, ...
> Those components can not be interacted correctly when they are not in the viewport, and thus one needs to scroll to them manually in his test.
> It is often problem in CI environment, where tests run on screens with lower resolution (smaller part of the page fit the browser window, and lot of elements are not in the viewport).
> My naive implementation of this would look like:
> * intercept all calls to {{WebElements}} and PageFragments root elements
> * in the interceptor method get the location of the element by: {{Point location = element.getLocation();}}
> * a then scroll to it: {{jsExecutor.executeScript("window.scrollTo("" + location.getX() +", " + location.getY() + ")");}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 4 months