Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hesteban-tuenti committed Oct 30, 2023
1 parent 03c8efa commit f9bc39c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion toolium/pageelements/page_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions toolium/pageelements/page_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -139,7 +140,6 @@ def __iter__(self):
return iter(self.page_elements)



class Buttons(PageElements):
page_element_class = Button

Expand Down
2 changes: 1 addition & 1 deletion toolium/pageobjects/common_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
self.driver.switch_to.context(CommonObject.native_context)

0 comments on commit f9bc39c

Please sign in to comment.