Beispiel #1
0
 def other_versions(self):
     from pages.version import FirefoxVersion
     other_versions = []
     for element in self.selenium.find_element(
             *self._all_versions_locator).find_elements(
                 *self._other_versions_locator):
         str(other_versions.append(FirefoxVersion(element.text)))
     return other_versions
Beispiel #2
0
 def current_versions(self):
     from pages.version import FirefoxVersion
     current_versions = []
     for element in self.find_element(
             *self._all_versions_locator).find_elements(
                 *self._current_versions_locator):
         str(current_versions.append(FirefoxVersion(element.text)))
     return current_versions
Beispiel #3
0
 def other_versions(self):
     from pages.version import FirefoxVersion
     other_versions = []
     for i in range(
             self.selenium.get_css_count(self._other_versions_locator)):
         other_versions.append(
             FirefoxVersion(
                 self.selenium.get_text(
                     '%s:nth(%i)' % (self._other_versions_locator, i))))
     return other_versions