diff --git a/automon/integrations/seleniumWrapper/browser.py b/automon/integrations/seleniumWrapper/browser.py index 88dc93ab..41ae3f61 100644 --- a/automon/integrations/seleniumWrapper/browser.py +++ b/automon/integrations/seleniumWrapper/browser.py @@ -132,7 +132,9 @@ def keys(self): async def refresh(self): self.webdriver.refresh() - logger.info(f'{True}') + logger.info(dict( + refresh_page=self.current_url + )) @property def url(self): @@ -728,8 +730,7 @@ async def wait_for( value: str, by: By = By.XPATH, timeout: int = 1, - **kwargs - ) -> selenium.webdriver.Chrome.find_element: + **kwargs) -> selenium.webdriver.Chrome.find_element: """wait for an element""" timeout_start = time.time() timeout_elapsed = round(abs(timeout_start - time.time()), 1) @@ -760,8 +761,7 @@ async def wait_for_list( values: list, by: By = By.XPATH, timeout: int = 1, - **kwargs - ) -> selenium.webdriver.Chrome.find_element: + **kwargs) -> selenium.webdriver.Chrome.find_element: """wait for a list of elements""" if isinstance(values, list): for value in values: @@ -787,8 +787,7 @@ async def wait_for_element( self, element: str or list, timeout: int = 1, - **kwargs - ) -> selenium.webdriver.Chrome.find_element: + **kwargs) -> selenium.webdriver.Chrome.find_element: """wait for an element""" if isinstance(element, list): return await self.wait_for_list( @@ -806,7 +805,7 @@ async def wait_for_xpath( self, xpath: str or list, timeout: int = 1, - **kwargs) -> str or False: + **kwargs) -> selenium.webdriver.Chrome.find_element: """wait for an xpath""" if isinstance(xpath, list): return await self.wait_for_list(