You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a page written in react, when executing tests on remote Zalenium webdriver, and the opened page is scrolled down that some particular Button is not visible, that button.click can not find the button by locator.
But when scrolling the page up, button.click works fine.
If I were still working on Widgetastic, I would probably suggest creating a sort of "middleware" system for the methods of browser and decorate all relevant browser methods with it:
Then the plugin_handler would look into the browser plugin instance for clues what to do when anything unexpected happens. Might be a simple value (retry_stale_element could be moved into that middleware as a retry_stale_element = True|False), or a method per browser-method where one could fine-tune things the framework does when situations specific to the project happen and drive it from there. An example for this use case could look something like this:
classMyBrowserPlugin(BrowserPlugin):
classHandlers:
defmove_to_element(self, executor):
try:
returnexecutor()
exceptAnException:
ifexecutor.params.something:
raise# Give up based on the params passed to the move_to_elementsdo_something()
returnexecutor(with_modified_param="eg_foo")
classTweaks:
retry_on_stale_element= {'move_to_element', 'whatever_else'}
On a page written in react, when executing tests on remote Zalenium webdriver, and the opened page is scrolled down that some particular Button is not visible, that button.click can not find the button by locator.
But when scrolling the page up, button.click works fine.
Added this workaround: https://github.com/Kiali-QE/kiali-qe-python/blob/master/kiali_qe/components/__init__.py#L461
Happened on "Metrics Settings" checkbox filter button.
The text was updated successfully, but these errors were encountered: