Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, marionette):
Base.__init__(self, marionette)
title = self.marionette.find_element(*self._welcome_title_locator)
Wait(self.marionette).until(lambda m: title.location['x'] == 0)
def __init__(self, marionette):
Base.__init__(self, marionette)
section = self.marionette.find_element(*self._section_locator)
Wait(self.marionette).until(lambda m: section.location['x'] == 0)
def __init__(self, marionette):
Base.__init__(self, marionette)
Wait(self.marionette).until(expected.element_displayed(
Wait(self.marionette).until(expected.element_present(
*self._messaging_settings_locator))))
def __init__(self, marionette):
Base.__init__(self, marionette)
element = self.marionette.find_element(*self._song_number_locator)
Wait(self.marionette).until(lambda m: element.location['x'] == 0)
def __init__(self, marionette):
Base.__init__(self, marionette)
Wait(self.marionette).until(
lambda m: self.marionette.find_element(*self._view_locator).get_attribute('class') != 'scrolling')
def __init__(self, marionette):
Base.__init__(self, marionette)
self.marionette.switch_to_frame()
# wait for the pop up screen to open
view = Wait(self.marionette, timeout=60).until(
expected.element_present(*self._iframe_locator))
Wait(self.marionette).until(expected.element_displayed(view))
# Change the app to make use of the Facebook developer appId
Wait(self.marionette, timeout=60).until(lambda m: view.get_attribute('data-url') != 'about:blank')
# Desktop b2g uses this
str = view.get_attribute('data-url').replace('123456', '323630664378726')
# Device uses this
str = str.replace('395559767228801', '323630664378726')
self.marionette.switch_to_frame(view)
def __init__(self, marionette):
Base.__init__(self, marionette)
el = self.marionette.find_element(*self._details_header_locator)
Wait(self.marionette).until(lambda m: el.location['x'] == 0)
def __init__(self, marionette):
Base.__init__(self, marionette)
def __init__(self, marionette):
Base.__init__(self, marionette)
def __init__(self, marionette):
Base.__init__(self, marionette)
self.wait_for_element_not_present(*self._search_results_loading_locator)