Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DialogShortcutIT::shortcutAddedWithPreventDefault_inputFocused_enteringOtherKeysToInputWorks is flaky #10491

Closed
mshabarov opened this issue Mar 30, 2021 · 0 comments · Fixed by #12830

Comments

@mshabarov
Copy link
Contributor

https://bender.vaadin.com/viewLog.html?buildId=221518&buildTypeId=Flow_Flow60_Flow60Snapshot

java.lang.RuntimeException: shortcutAddedWithPreventDefault_inputFocused_enteringOtherKeysToInputWorks[ANY_Chrome_](com.vaadin.flow.uitest.ui.DialogShortcutIT): run failed 2 times
	at com.vaadin.testbench.RetryRule$1.evaluate(RetryRule.java:69)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:410)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: org.openqa.selenium.NoSuchElementException: No element with tag <button> found with the attributes [id='listen-on-dialog-button1'] using index 0
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'ip-172-16-1-226.eu-west-1.compute.internal', ip: '172.16.1.226', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.154-128.181.amzn2.x86_64', java.version: '1.8.0_201'
Driver info: driver.version: unknown
	at com.vaadin.testbench.ElementQuery.get(ElementQuery.java:321)
	at com.vaadin.testbench.ElementQuery.first(ElementQuery.java:245)
	at com.vaadin.testbench.ElementQuery.id(ElementQuery.java:154)
	at com.vaadin.flow.uitest.ui.DialogShortcutIT.listenToShortcutOnDialog(DialogShortcutIT.java:229)
	at com.vaadin.flow.uitest.ui.DialogShortcutIT.shortcutAddedWithPreventDefault_inputFocused_enteringOtherKeysToInputWorks(DialogShortcutIT.java:131)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at com.vaadin.testbench.parallel.ParallelRunner$TBMethod.invokeExplosively(ParallelRunner.java:494)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at com.vaadin.testbench.parallel.ParallelRunner$1.evaluate(ParallelRunner.java:468)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
	at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61)
	at com.vaadin.testbench.RetryRule$1.evaluate(RetryRule.java:59)
	... 12 more
------- Stderr: -------
Mar 30, 2021 9:51:46 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Mar 30, 2021 9:51:48 AM com.vaadin.testbench.ScreenshotOnFailureRule failed
INFO: Error screenshot written to: /opt/agent/work/bd8be42f93e09a33/flow-tests/test-root-context/error-screenshots/shortcutAddedWithPreventDefault_inputFocused_enteringOtherKeysToInputWorks[ANY_Chrome_](com.vaadin.flow.uitest.ui.DialogShortcutIT).png
Mar 30, 2021 9:51:49 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Mar 30, 2021 9:51:50 AM com.vaadin.testbench.ScreenshotOnFailureRule failed
INFO: Error screenshot written to: /opt/agent/work/bd8be42f93e09a33/flow-tests/test-root-context/error-screenshots/shortcutAddedWithPreventDefault_inputFocused_enteringOtherKeysToInputWorks[ANY_Chrome_](com.vaadin.flow.uitest.ui.DialogShortcutIT).png

image

mshabarov added a commit that referenced this issue Mar 30, 2021
pleku pushed a commit that referenced this issue Mar 30, 2021
vaadin-bot pushed a commit that referenced this issue Mar 30, 2021
mshabarov added a commit that referenced this issue Mar 30, 2021
mcollovati added a commit that referenced this issue Jan 25, 2022
…rom list

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
mcollovati added a commit that referenced this issue Jan 26, 2022
…rom list

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
joheriks pushed a commit that referenced this issue Jan 26, 2022
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
vaadin-bot pushed a commit that referenced this issue Jan 26, 2022
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
vaadin-bot pushed a commit that referenced this issue Jan 26, 2022
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
joheriks pushed a commit that referenced this issue Jan 26, 2022
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
joheriks pushed a commit that referenced this issue Jan 26, 2022
…ing assertions (#12830)

Sometimes findElements(By.tagNvame("div")) seems to return results
before server roundtrips are completed, so list of elements is missing
elements. Performing a direct searching for child element by xpath
(findElement(By.xpath("div[N]")))) seem always to work.
To be noted that xpath position is 1 based

Fixes #10481, #10487, #10491
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant