Update Firefox settings and behavior
This commit is contained in:
parent
6fb5da4e8a
commit
10461d4393
|
@ -484,7 +484,7 @@ def _set_firefox_options(
|
|||
options.set_preference("app.update.enabled", False)
|
||||
options.set_preference("app.update.silent", True)
|
||||
options.set_preference("browser.formfill.enable", False)
|
||||
options.set_preference("browser.privatebrowsing.autostart", True)
|
||||
options.set_preference("browser.privatebrowsing.autostart", False)
|
||||
options.set_preference("devtools.errorconsole.enabled", True)
|
||||
options.set_preference("dom.webnotifications.enabled", False)
|
||||
options.set_preference("dom.disable_beforeunload", True)
|
||||
|
|
|
@ -297,8 +297,8 @@ class BaseCase(unittest.TestCase):
|
|||
except Exception:
|
||||
pass
|
||||
self.__scroll_to_element(element, selector, by)
|
||||
if self.browser == "safari":
|
||||
if by == By.LINK_TEXT:
|
||||
if self.browser == "firefox" or self.browser == "safari":
|
||||
if by == By.LINK_TEXT or "contains(" in selector:
|
||||
self.__jquery_click(selector, by=by)
|
||||
else:
|
||||
self.__js_click(selector, by=by)
|
||||
|
|
Loading…
Reference in New Issue