[JBoss JIRA] (ARQGRA-280) refactor handling of staleness
by Jan Papousek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-280?page=com.atlassian.jira.plugin... ]
Jan Papousek updated ARQGRA-280:
--------------------------------
Original Estimate: 6 hours
Remaining Estimate: 6 hours
> refactor handling of staleness
> ------------------------------
>
> Key: ARQGRA-280
> URL: https://issues.jboss.org/browse/ARQGRA-280
> Project: Arquillian Graphene
> Issue Type: Task
> Affects Versions: 2.0.0.Alpha3
> Reporter: Jan Papousek
> Assignee: Jan Papousek
> Fix For: 2.0.0.Alpha4
>
> Original Estimate: 6 hours
> Remaining Estimate: 6 hours
>
> The current situation of handling staleness is it works purely accidentally in some cases and it prevents any caching of web elements.
> Imagine the following code:
> {code}
> Action action = new Actions(driver).moveToElement(element).build();
> ... // some action causing staleness
> action.perform();
> {code}
> The previous code doesn't throw StaleElementReferenceException only in the case when the action causing staleness finishes before the requested action starts performing and when there is no caching of web elements. Currently Graphene can't force the action to perform again when StaleElementReferenceException is thrown.
> In the case of caching the scenerio would be:
> # element is loaded and put to the cache
> # ... some actions ...
> # action causing staleness is performed
> # the requested action starts performing
> -- cached element is used => StaleElementReferenceException
--
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
13 years
[JBoss JIRA] (ARQGRA-197) Support for Page Objects encapsulating location
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-197?page=com.atlassian.jira.plugin... ]
Juraj Húska updated ARQGRA-197:
-------------------------------
Original Estimate: 6 hours
Remaining Estimate: 6 hours
> Support for Page Objects encapsulating location
> -----------------------------------------------
>
> Key: ARQGRA-197
> URL: https://issues.jboss.org/browse/ARQGRA-197
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Affects Versions: 2.0.0.Alpha2
> Reporter: Lukáš Fryč
> Assignee: Juraj Húska
> Priority: Minor
> Fix For: 2.0.0.Alpha4
>
> Original Estimate: 6 hours
> Remaining Estimate: 6 hours
>
> {code:java|title=ConferencePage.java}
> @Location("view/conference/create.jsf")
> public class ConferencePage {
>
> @FindBy(id = "create")
> private ConferenceForm form;
>
> public ConferenceForm getForm() {
> return form;
> }
> }
> public class ConferencePage implements Bookmarkable {
>
> @FindBy(id = "create")
> private ConferenceForm form;
>
> public ConferenceForm getForm() {
> return form;
> }
> public String getLocation() {
> return "view/conference/create.jsf";
> }
> }
> {code}
> {code:java|title=Test.java}
> @Test
> public void test() {
> ConferencePage page = goTo(ConferencePage.class);
> ConferenceForm = page.getForm();
> }
> {code}
> The only issue is that it is not sure on which deployment and with what browser should given Page operate.
--
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
13 years
[JBoss JIRA] (ARQGRA-197) Support for Page Objects encapsulating location
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-197?page=com.atlassian.jira.plugin... ]
Work on ARQGRA-197 started by Juraj Húska.
> Support for Page Objects encapsulating location
> -----------------------------------------------
>
> Key: ARQGRA-197
> URL: https://issues.jboss.org/browse/ARQGRA-197
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Affects Versions: 2.0.0.Alpha2
> Reporter: Lukáš Fryč
> Assignee: Juraj Húska
> Priority: Minor
> Fix For: 2.0.0.Alpha4
>
>
> {code:java|title=ConferencePage.java}
> @Location("view/conference/create.jsf")
> public class ConferencePage {
>
> @FindBy(id = "create")
> private ConferenceForm form;
>
> public ConferenceForm getForm() {
> return form;
> }
> }
> public class ConferencePage implements Bookmarkable {
>
> @FindBy(id = "create")
> private ConferenceForm form;
>
> public ConferenceForm getForm() {
> return form;
> }
> public String getLocation() {
> return "view/conference/create.jsf";
> }
> }
> {code}
> {code:java|title=Test.java}
> @Test
> public void test() {
> ConferencePage page = goTo(ConferencePage.class);
> ConferenceForm = page.getForm();
> }
> {code}
> The only issue is that it is not sure on which deployment and with what browser should given Page operate.
--
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
13 years
[JBoss JIRA] (ARQGRA-269) Argument is of an illegal type, when attempting to switchTo an iframe
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-269?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-269:
------------------------------
Original Estimate: 1 hour
Remaining Estimate: 1 hour
> Argument is of an illegal type, when attempting to switchTo an iframe
> ---------------------------------------------------------------------
>
> Key: ARQGRA-269
> URL: https://issues.jboss.org/browse/ARQGRA-269
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha3
> Environment: Windows 7
> JDK 1.7U10 64-bit
> Drone 1.2.0Alpha
> Graphen 2.0.0.Alpha3
> Reporter: Simon Knott
> Assignee: Lukáš Fryč
> Priority: Critical
> Fix For: 2.0.0.Alpha4
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> I am getting the following exception thrown when attempting to switchTo() an iframe:
> {code}java.lang.IllegalArgumentException: Argument is of an illegal type: $Proxy26
> at org.openqa.selenium.remote.internal.WebElementToJsonConverter.apply(WebElementToJsonConverter.java:78)
> at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.frame(RemoteWebDriver.java:797)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invokeReal(GrapheneProxyHandler.java:209)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler$1.invoke(GrapheneProxyHandler.java:140)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.invoke(GrapheneProxyHandler.java:170)
> at $Proxy27.frame(Unknown Source){code}
> The test code which is causing the exception looks like:
> {code}WebElement iframe = driver.findElement(By.tagName("iframe"));
> TargetLocator targetLocator = driver.switchTo();
> targetLocator.frame(iframe);{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
13 years