-
Notifications
You must be signed in to change notification settings - Fork 43
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
Get wrong browser object for non top view in hierarchy #132
Comments
So basically we want to extend For top-level views calls to wait_for_element() via Using it through |
widgetastic.core/src/widgetastic/browser.py Lines 833 to 853 in f39a87f
|
this change may necessitate a structural shift for wrapping browsers and locator using objects to sort out, right now i don't have a idea for a solution |
please also show the use-case you want to implement, due the nature of the issue (structural) it may be easier in the short term to find a different way to implement the use-case simply to avoid having to sort out the underlying issue in a timely manner |
@RonnyPfannschmidt actually that was real use case. I did it here: but teammates said proper comment that it will be necessary to fix all (>50) places where we have not top level view. |
@RonnyPfannschmidt Perhaps a custom super wrapper that "unwraps" the underlying browser from its wrapping would do. Instead of
And then the use would be like with normal super. |
Actually not. The base If specific things are needed, you can:
|
What we do:
Then we do:
In result when we call
view
we have wrong browser object type in itsis_displayed
method:self.browser
==BrowserParentWrapper
notAirgunBrowser
that will get us tosuper(type, obj): obj must be an instance or subtype of type
exception inwait_for_element
methodThe text was updated successfully, but these errors were encountered: