[JBoss JIRA] (ARQGRA-279) Support for method Graphene.element(WebElement, By) and its condition isPresent
by Jan Papousek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-279?page=com.atlassian.jira.plugin... ]
Work on ARQGRA-279 started by Jan Papousek.
> Support for method Graphene.element(WebElement, By) and its condition isPresent
> -------------------------------------------------------------------------------
>
> Key: ARQGRA-279
> URL: https://issues.jboss.org/browse/ARQGRA-279
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api
> Reporter: Sona Jamborova
> Assignee: Jan Papousek
> Fix For: 2.0.0.Alpha5
>
>
> Please, can you add support for method Graphene.element(WebElement, By) for searching element (located by By) in parent element.
> Motivation:
> A panel which display content of current directory. Operations with this panel are open a file, open a child directory, go back. The content of this panel depends on file system and we use different file system for our test. I need create general framework for our tests. I think about:
> {code}
> public class Designer {
> ...
> @FindBy(jquery = "div.tabbable:contains('Project Explorer')")
> private ProjectExplorer projExpl;
> ...
> }
> {code}
> {code}
> public class ProjectExplorer {
> ...
> @Root
> private WebElement root;
>
> @FindBy(css = "table>tr:first-child() div");
> private WebElement path;
> ...
>
> public void openFile(String path) {
> String[] parts = path.split("/");
> for (String part: parts) {
> By by = jquerySelector(format("a.gwt-Anchor:contains('%s')", part));
> waitAjax().until(element(root, by).isPresent());
> root.findElement(by).click(); //this should be reduce to waitAjax().until(element(root, by).isPresent()).click(); (this is not point of this issue)
> }
> }
> public String getPath () {
> return path.getText();
> }
> }
> {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
11 years, 8 months
[JBoss JIRA] (ARQGRA-279) Support for method Graphene.element(WebElement, By) and its condition isPresent
by Jan Papousek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-279?page=com.atlassian.jira.plugin... ]
Jan Papousek commented on ARQGRA-279:
-------------------------------------
Lukas: #findElement(...) has to throw NoSuchElementException when the requested element is not present (because of Selenium 2 API).
I agree with the reordering of the arguments as you've proposed.
> Support for method Graphene.element(WebElement, By) and its condition isPresent
> -------------------------------------------------------------------------------
>
> Key: ARQGRA-279
> URL: https://issues.jboss.org/browse/ARQGRA-279
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: api
> Reporter: Sona Jamborova
> Assignee: Jan Papousek
> Fix For: 2.0.0.Alpha5
>
>
> Please, can you add support for method Graphene.element(WebElement, By) for searching element (located by By) in parent element.
> Motivation:
> A panel which display content of current directory. Operations with this panel are open a file, open a child directory, go back. The content of this panel depends on file system and we use different file system for our test. I need create general framework for our tests. I think about:
> {code}
> public class Designer {
> ...
> @FindBy(jquery = "div.tabbable:contains('Project Explorer')")
> private ProjectExplorer projExpl;
> ...
> }
> {code}
> {code}
> public class ProjectExplorer {
> ...
> @Root
> private WebElement root;
>
> @FindBy(css = "table>tr:first-child() div");
> private WebElement path;
> ...
>
> public void openFile(String path) {
> String[] parts = path.split("/");
> for (String part: parts) {
> By by = jquerySelector(format("a.gwt-Anchor:contains('%s')", part));
> waitAjax().until(element(root, by).isPresent());
> root.findElement(by).click(); //this should be reduce to waitAjax().until(element(root, by).isPresent()).click(); (this is not point of this issue)
> }
> }
> public String getPath () {
> return path.getText();
> }
> }
> {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
11 years, 8 months
[JBoss JIRA] (ARQ-1059) Expose events for instantiation and destruction of drivers
by Karel Piwko (JIRA)
[ https://issues.jboss.org/browse/ARQ-1059?page=com.atlassian.jira.plugin.s... ]
Karel Piwko updated ARQ-1059:
-----------------------------
Assignee: (was: Karel Piwko)
> Expose events for instantiation and destruction of drivers
> ----------------------------------------------------------
>
> Key: ARQ-1059
> URL: https://issues.jboss.org/browse/ARQ-1059
> Project: Arquillian
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Extension - Drone
> Affects Versions: drone_1.1.0.CR2
> Reporter: Lukáš Fryč
> Fix For: drone_1.2.0.next
>
>
> Right now, Graphene needs to wrap all specific factories with higher priority and delegate to original factories - in the process, Graphene creates proxy for real instance (to allow its magic) and during destruction, Graphene "unwraps" original instance and pass it to real implementation.
> It forces Graphene reflect changes in drivers implemented by Drone and ties it to the particular version of Drone.
> ---
> The suggested events should allow listeners to "modify" the created instance (e.g. Graphene could then provide its proxy instead and setup real implementation to context).
> Similarly during destruction, event should be fired before {{destroy}} method, which would allow to reflect changes and provide the real instance to be destroyed (Graphene would unwrap proxy and pass real driver instance to destroy and reset the context).
--
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
11 years, 8 months