diff --git a/toolium/pageelements/page_element.py b/toolium/pageelements/page_element.py index 6a49fe40..6e9531e0 100644 --- a/toolium/pageelements/page_element.py +++ b/toolium/pageelements/page_element.py @@ -117,7 +117,6 @@ def _find_web_element(self): self._web_element = base.find_elements(*self.locator)[self.order] if self.order \ else base.find_element(*self.locator) - def parent_locator_str(self): """Return string with locator tuple for parent element diff --git a/toolium/pageelements/page_elements.py b/toolium/pageelements/page_elements.py index 56e3db6d..13bcb4b2 100644 --- a/toolium/pageelements/page_elements.py +++ b/toolium/pageelements/page_elements.py @@ -120,10 +120,11 @@ def page_elements(self) -> List[Any]: self._page_elements = [] for order, web_element in enumerate(self.web_elements): # Create multiple PageElement with original locator and order - page_element = self.page_element_class(self.locator[0], self.locator[1], parent=self.parent, - order=order, webview = self.webview, - webview_context_selection_callback = self.webview_context_selection_callback, - webview_csc_args = self.webview_csc_args) + page_element =\ + self.page_element_class(self.locator[0], self.locator[1], parent=self.parent, + order=order, webview=self.webview, + webview_context_selection_callback=self.webview_context_selection_callback, + webview_csc_args=self.webview_csc_args) page_element.reset_object(self.driver_wrapper) page_element._web_element = web_element self._page_elements.append(page_element) @@ -139,7 +140,6 @@ def __iter__(self): return iter(self.page_elements) - class Buttons(PageElements): page_element_class = Button diff --git a/toolium/pageobjects/common_object.py b/toolium/pageobjects/common_object.py index bdfc1e57..02e77f5c 100644 --- a/toolium/pageobjects/common_object.py +++ b/toolium/pageobjects/common_object.py @@ -114,4 +114,4 @@ def _ios_automatic_context_selection(self): raise KeyError("WEBVIEW context not found") else: if self.driver.context != CommonObject.native_context: - self.driver.switch_to.context(CommonObject.native_context) \ No newline at end of file + self.driver.switch_to.context(CommonObject.native_context)