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
Exception transitioning to view in new context #53
Comments
This is due to Browser implementing Quick solution is to make |
As a side note, different inheritance models (like the one that golang uses, which essentially is built in "duck typing" as opposed to explicit inheritance) don't have this problem, for the programming language designer in you :). |
I'm going to mess around with making all |
Fixed in #54 Making all |
The real fix was here btw darcy-framework/darcy-web@f3b0604 |
Given
Synq.after(someElement::click)
.expect(transition().to(new View()).inNewContext())
.waitUpTo(10, ChronoUnit.SECONDS);
Throws
com.redhat.darcy.ui.DarcyException: Cannot find contexts of type: interface com.redhat.darcy.ui.api.FindableElementContext
at com.redhat.darcy.webdriver.internal.TargetedWebDriverParentContext.findByView(TargetedWebDriverParentContext.java:112)
at com.redhat.darcy.webdriver.internal.DelegatingWebContext.findByView(DelegatingWebContext.java:356)
at com.redhat.darcy.webdriver.WebDriverBrowser.lambda$29(WebDriverBrowser.java:317)
at com.redhat.darcy.webdriver.WebDriverBrowser$$Lambda$64/1060042118.get(Unknown Source)
at com.redhat.darcy.webdriver.WebDriverBrowser.attemptAndGet(WebDriverBrowser.java:342)
at com.redhat.darcy.webdriver.WebDriverBrowser.findByView(WebDriverBrowser.java:317)
at com.redhat.darcy.ui.By$ByView.find(By.java:520)
at com.redhat.darcy.web.internal.AbstractWebSelection.contextOfType(AbstractWebSelection.java:43)
at com.redhat.darcy.ui.api.ContextSelection.elementContext(ContextSelection.java:44)
at com.redhat.darcy.ui.internal.NewContextTransitionEvent.(NewContextTransitionEvent.java:36)
at com.redhat.darcy.ui.internal.SimpleTransitionEvent.inNewContext(SimpleTransitionEvent.java:57)
at com.redhat.darcy.ui.internal.SimpleTransitionEvent.inNewContext(SimpleTransitionEvent.java:47)
The text was updated successfully, but these errors were encountered: