[JBoss JIRA] (ARQGRA-29) isVisible JS condition should not fail when element is not present
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-29?page=com.atlassian.jira.plugin.... ]
Lukáš Fryč closed ARQGRA-29.
----------------------------
> isVisible JS condition should not fail when element is not present
> ------------------------------------------------------------------
>
> Key: ARQGRA-29
> URL: https://issues.jboss.org/browse/ARQGRA-29
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Components: api, core
> Affects Versions: 1.0.0.CR3
> Reporter: Juraj Húska
> Assignee: Lukáš Fryč
> Priority: Minor
>
> The method isVisible of object selenium is failing (throwing exception element not found), when the element is not present on the page.
> This behavior is quite unhandy in for invocations such as:
> {code}
> waitModel.failWith("Popup did not show").until(elementVisible.locator(popup));
> {code}
> It is only the example, but this will fail and no wait is done at all. To simulate it without failing, one has to write:
> {code}
> waitModel.failWith("Popup did not show").until(elementPresent.locator( jq( popup.getRawLocator + ":visible" ) ));
> {code}
> So he *has to use elementPresent condition and add :visible locator*, even when he really just wants to verify whether the element is visible, since it is obvious that the element can be present and not be visible at the same time.
> So my propose will be to *catch* the ElementNotFoundException in selenium invocation of isVisible and to *return false*, when the element is not present. For me this sounds quite reasonably. *Is there any problem with it? Will it be problem to change the Selenium API, and to make it not consistent with standard Selenium 1,2 ?*
--
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, 2 months
[JBoss JIRA] (ARQGRA-152) Fail fast if path to browser is not valid
by Lukáš Fryč (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-152?page=com.atlassian.jira.plugin... ]
Lukáš Fryč closed ARQGRA-152.
-----------------------------
> Fail fast if path to browser is not valid
> -----------------------------------------
>
> Key: ARQGRA-152
> URL: https://issues.jboss.org/browse/ARQGRA-152
> Project: Arquillian Graphene
> Issue Type: Enhancement
> Components: core
> Affects Versions: 1.0.0.Final
> Reporter: Karel Piwko
> Assignee: Karel Piwko
>
> There is no reason to delegate failure to Selenium. If browser binary does not exist for default selenium, simply fail fast. E.g.
> {code:xml}
> <property name="browser">*firefox /opt/firefox-9.0.1/firefox-bin</property>
> {code}
> {code}
> java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path!
> Please add the directory containing ''firefox.exe'' to your PATH environment
> variable, or explicitly specify a path to Firefox 3 like this:
> *firefox3 c:\blah\firefox.exe
> at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:109)
> at org.jboss.arquillian.drone.selenium.factory.DefaultSeleniumFactory.createInstance(DefaultSeleniumFactory.java:67)
> {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, 2 months