Browse Source

self.html set after refactoring

bernhardbuhl 4 years ago
parent
commit
a54e8fdc6f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      baangt/base/BrowserHandling/BrowserHandling.py

+ 2 - 3
baangt/base/BrowserHandling/BrowserHandling.py

@@ -578,13 +578,12 @@ class BrowserDriver:
         if loggingOn:
             logger.debug(f"Locating Element {self.browserData.locatorType} = {self.browserData.locator}")
 
-        self.element, html = webDrv.webdriver_tryAndRetry(self.browserData, timeout=timeout, optional=optional)
+        self.element, self.html = webDrv.webdriver_tryAndRetry(self.browserData, timeout=timeout, optional=optional)
 
         if not self.element and not optional:
             raise Exceptions.baangtTestStepException(f"Element {self.browserData.locatorType} = {self.browserData.locator} could not be found "
                                                      f"within timeout of {timeout}")
-        return self.element, html
-
+        return self.element, self.html
 
     def getURL(self):
         """