[JBoss JIRA] (ARQGRA-501) Error when checking for the invisibility of elements
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQGRA-501?page=com.atlassian.jira.plugin... ]
Matous Jobanek commented on ARQGRA-501:
---------------------------------------
May I ask you for providing a reproducer? So we can add a test case into our test suite and verify that the problem is really fixed.
> Error when checking for the invisibility of elements
> ----------------------------------------------------
>
> Key: ARQGRA-501
> URL: https://issues.jboss.org/browse/ARQGRA-501
> Project: Arquillian Graphene
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Krassimir Valev
>
> I get the following error message, when waiting for an element to disappear:
> {code:java}
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:653)
> at java.util.ArrayList.get(ArrayList.java:429)
> at org.jboss.arquillian.graphene.enricher.WebElementUtils$3.getTarget(WebElementUtils.java:104)
> at org.jboss.arquillian.graphene.proxy.GrapheneProxyHandler.getTarget(GrapheneProxyHandler.java:149)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.getTarget(GrapheneContextualHandler.java:189)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$1.invoke(GrapheneContextualHandler.java:162)
> at org.jboss.arquillian.graphene.enricher.SearchContextInterceptor.intercept(SearchContextInterceptor.java:50)
> at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
> at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:47)
> at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor$1.apply(StaleElementInterceptor.java:43)
> at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:209)
> at org.jboss.arquillian.graphene.wait.WebDriverWaitImpl.until(WebDriverWaitImpl.java:96)
> at org.jboss.arquillian.graphene.enricher.StaleElementInterceptor.intercept(StaleElementInterceptor.java:43)
> at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
> at org.jboss.arquillian.graphene.intercept.InterceptorBuilder$2.intercept(InterceptorBuilder.java:139)
> at org.jboss.arquillian.graphene.proxy.InvocationContextImpl.invoke(InvocationContextImpl.java:87)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler$2.call(GrapheneContextualHandler.java:212)
> at org.jboss.arquillian.graphene.context.BrowserActions.performAction(BrowserActions.java:62)
> at org.jboss.arquillian.graphene.proxy.GrapheneContextualHandler.invoke(GrapheneContextualHandler.java:208)
> at com.sun.proxy.$Proxy316.isDisplayed(Unknown Source)
> at org.openqa.selenium.support.ui.ExpectedConditions$20.apply(ExpectedConditions.java:585)
> at org.openqa.selenium.support.ui.ExpectedConditions$20.apply(ExpectedConditions.java:581)
> at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:209)
> at org.jboss.arquillian.graphene.wait.WebDriverWaitImpl.until(WebDriverWaitImpl.java:96)
> {code}
> The wait condition looks like this:
> {code:java}
> return waitGui()
> .withTimeout(timeout, TimeUnit.SECONDS)
> .pollingEvery(100, TimeUnit.MILLISECONDS)
> .ignoring(NoSuchElementException.class, StaleElementReferenceException.class)
> .ignoring(InvocationTargetException.class)
> .until(ExpectedConditions.invisibilityOfElementLocated(locator));
> {code}
> The very same condition used to work with graphene-webdriver 2.0.3.Final and selenium-bom 2.50.1, but it fails now after upgrading to graphene-webdriver 2.2.0 and selenium-bom 3.3.1
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 7 months
[JBoss JIRA] (ARQ-2114) It is easy to reach the GH rate limit when firefox is used
by Matous Jobanek (JIRA)
[ https://issues.jboss.org/browse/ARQ-2114?page=com.atlassian.jira.plugin.s... ]
Matous Jobanek closed ARQ-2114.
-------------------------------
Resolution: Done
Pushed upstream in:
https://github.com/arquillian/arquillian-extension-drone/commit/c4fda8413...
https://github.com/arquillian/arquillian-extension-drone/commit/6501fed7e...
> It is easy to reach the GH rate limit when firefox is used
> ----------------------------------------------------------
>
> Key: ARQ-2114
> URL: https://issues.jboss.org/browse/ARQ-2114
> Project: Arquillian
> Issue Type: Bug
> Components: Extension - Drone
> Affects Versions: drone_2.1.1
> Reporter: Matous Jobanek
> Assignee: Matous Jobanek
> Fix For: drone_2.1.2
>
>
> When the limit is reached, then you get this error:
> {noformat}
> 07:48:53 java.lang.RuntimeException: Could not create statement
> 07:48:53 at org.jboss.arquillian.junit.Arquillian.methodBlock(Arquillian.java:360)
> 07:48:53 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
> 07:48:53 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
> 07:48:53 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> 07:48:53 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
> 07:48:53 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
> 07:48:53 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
> 07:48:53 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
> 07:48:53 at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:205)
> 07:48:53 at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:431)
> 07:48:53 at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:55)
> 07:48:53 at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:219)
> 07:48:53 at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
> 07:48:53 at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> 07:48:53 at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> 07:48:53 at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:167)
> 07:48:53 at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> 07:48:53 at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> 07:48:53 at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> 07:48:53 at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> 07:48:53 at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> 07:48:53 at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> 07:48:53 at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
> 07:48:53 Caused by: java.lang.IllegalStateException: Something bad happened when Drone was trying to download and prepare a binary. For more information see the cause.
> 07:48:53 at org.jboss.arquillian.drone.webdriver.binary.handler.AbstractBinaryHandler.checkAndSetBinary(AbstractBinaryHandler.java:61)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.getCapabilities(FirefoxDriverFactory.java:107)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:73)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:39)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:127)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:38)
> 07:48:53 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:112)
> 07:48:53 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:44)
> 07:48:53 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:89)
> 07:48:53 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 07:48:53 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 07:48:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 07:48:53 at java.lang.Thread.run(Thread.java:745)
> 07:48:53 Caused by: java.lang.IllegalStateException: This is not a JSON Array.
> 07:48:53 at com.google.gson.JsonElement.getAsJsonArray(JsonElement.java:106)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.binary.downloading.source.GitHubSource.getReleaseForVersion(GitHubSource.java:103)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.binary.handler.AbstractBinaryHandler.downloadAndPrepare(AbstractBinaryHandler.java:161)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.binary.handler.AbstractBinaryHandler.checkAndSetBinary(AbstractBinaryHandler.java:59)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.getCapabilities(FirefoxDriverFactory.java:107)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:73)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory.createInstance(FirefoxDriverFactory.java:39)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:127)
> 07:48:53 at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:38)
> 07:48:53 at org.jboss.arquillian.drone.impl.DroneConfigurator$1.createInstance(DroneConfigurator.java:112)
> 07:48:53 at org.jboss.arquillian.drone.impl.CachingCallableImpl.call(CachingCallableImpl.java:44)
> 07:48:53 at org.jboss.arquillian.core.impl.threading.ThreadedExecutorService$ContextualCallable.call(ThreadedExecutorService.java:89)
> 07:48:53 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 07:48:53 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 07:48:53 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 07:48:53 at java.lang.Thread.run(Thread.java:745)
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 7 months
[JBoss JIRA] (ARQ-2117) Confusing warning message from observer
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-2117?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak updated ARQ-2117:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Confusing warning message from observer
> ---------------------------------------
>
> Key: ARQ-2117
> URL: https://issues.jboss.org/browse/ARQ-2117
> Project: Arquillian
> Issue Type: Enhancement
> Components: Base Implementation
> Reporter: Bartosz Majsak
> Assignee: Dipak Pawar
> Priority: Minor
>
> When observer has one of the arguments null following warning is displayed:
> {{WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.doServiceDeploy is null. It won't be invoked.}}
> It's been introduced for debugging purposes and it's just confusing for the users.
> We should only display it when {{arquillian.debug=true}} is enabled.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 7 months
[JBoss JIRA] (ARQ-2117) Confusing warning message from observer
by Bartosz Majsak (JIRA)
Bartosz Majsak created ARQ-2117:
-----------------------------------
Summary: Confusing warning message from observer
Key: ARQ-2117
URL: https://issues.jboss.org/browse/ARQ-2117
Project: Arquillian
Issue Type: Enhancement
Components: Base Implementation
Reporter: Bartosz Majsak
Priority: Minor
When observer has one of the arguments null following warning is displayed:
{{WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.doServiceDeploy is null. It won't be invoked.}}
It's been introduced for debugging purposes and it's just confusing for the users.
We should only display it when {{arquillian.debug=true}} is enabled.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 7 months
[JBoss JIRA] (ARQ-2117) Confusing warning message from observer
by Bartosz Majsak (JIRA)
[ https://issues.jboss.org/browse/ARQ-2117?page=com.atlassian.jira.plugin.s... ]
Bartosz Majsak reassigned ARQ-2117:
-----------------------------------
Assignee: Dipak Pawar
> Confusing warning message from observer
> ---------------------------------------
>
> Key: ARQ-2117
> URL: https://issues.jboss.org/browse/ARQ-2117
> Project: Arquillian
> Issue Type: Enhancement
> Components: Base Implementation
> Reporter: Bartosz Majsak
> Assignee: Dipak Pawar
> Priority: Minor
>
> When observer has one of the arguments null following warning is displayed:
> {{WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.doServiceDeploy is null. It won't be invoked.}}
> It's been introduced for debugging purposes and it's just confusing for the users.
> We should only display it when {{arquillian.debug=true}} is enabled.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
7 years, 7 months