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
browser.click(buttuon, ignore_ajax=True) any way call browser.plugin.ensure_page_safe before and after click
in widgetastic browser click we have this code
@retry_stale_elementdefclick(self, locator, *args, **kwargs):
"""Clicks at a specific element using two separate events (mouse move, mouse click). Args: See :py:meth:`elements` """self.logger.debug('click: %r', locator)
ignore_ajax=kwargs.pop('ignore_ajax', False)
el=self.move_to_element(locator, *args, **kwargs)
self.plugin.before_click(el, locator)
# and then click on current mouse positionself.perform_click()
ifnotignore_ajax:
try:
self.plugin.ensure_page_safe()
exceptUnexpectedAlertPresentException:
passtry:
self.plugin.after_click(el, locator)
exceptUnexpectedAlertPresentException:
pass
in airgun browser plugin we have this code
classclassAirgunBrowserPlugin(DefaultPlugin):
defbefore_click(self, element, locator=None):
"""Invoked before clicking on an element. Ensure page is fully loaded before clicking. """self.ensure_page_safe()
defafter_click(self, element, locator=None):
"""Invoked after clicking on an element. Ensure page is fully loaded before proceeding further. """self.ensure_page_safe()
The text was updated successfully, but these errors were encountered:
browser.click(buttuon, ignore_ajax=True) any way call browser.plugin.ensure_page_safe before and after click
in widgetastic browser click we have this code
in airgun browser plugin we have this code
The text was updated successfully, but these errors were encountered: