code: def is_element_in_an_iframe(self, selector, by=By.CSS_SELECTOR):
          
          selector, by = self.__recalculate_selector(selector, by)
          if self.is_element_present(selector, by=by):
              return False
          soup = self.get_beautiful_soup()
          iframe_list = soup.select('iframe')
          for iframe in iframe_list:
              iframe_identifier = None
              if iframe.has_attr('name') and len(iframe['name']) > 0:
                  iframe_identifier = iframe['name']
              elif iframe.has_attr('id') and len(iframe['id']) > 0:
                  iframe_identifier = iframe['id']
              else:
                  continue
              self.switch_to_frame(iframe_identifier)
              if self.is_element_present(selector, by=by):
                  self.switch_to_default_content()
                  return True
              self.switch_to_default_content()
          return False
docs: Returns True if the selector's element is located in an iframe.
              Otherwise returns False.