|
50 | 50 | WebDriverCache, |
51 | 51 | WindowKeywords, |
52 | 52 | ) |
53 | | -from SeleniumLibrary.keywords.screenshot import EMBED |
| 53 | +from SeleniumLibrary.keywords.screenshot import EMBED, BASE64 |
54 | 54 | from SeleniumLibrary.locators import ElementFinder |
55 | 55 | from SeleniumLibrary.utils import LibraryListener, is_truthy, _convert_timeout, _convert_delay |
56 | 56 |
|
@@ -614,8 +614,8 @@ def __init__( |
614 | 614 | - ``run_on_failure``: |
615 | 615 | Default action for the `run-on-failure functionality`. |
616 | 616 | - ``screenshot_root_directory``: |
617 | | - Path to folder where possible screenshots are created or EMBED. |
618 | | - See `Set Screenshot Directory` keyword for further details about EMBED. |
| 617 | + Path to folder where possible screenshots are created or EMBED or BASE64. |
| 618 | + See `Set Screenshot Directory` keyword for further details about EMBED and BASE64. |
619 | 619 | If not given, the directory where the log file is written is used. |
620 | 620 | - ``plugins``: |
621 | 621 | Allows extending the SeleniumLibrary with external Python classes. |
@@ -846,6 +846,8 @@ def _resolve_screenshot_root_directory(self): |
846 | 846 | if is_string(screenshot_root_directory): |
847 | 847 | if screenshot_root_directory.upper() == EMBED: |
848 | 848 | self.screenshot_root_directory = EMBED |
| 849 | + if screenshot_root_directory.upper() == BASE64: |
| 850 | + self.screenshot_root_directory = BASE64 |
849 | 851 |
|
850 | 852 | @staticmethod |
851 | 853 | def _get_translation(language: Union[str, None]) -> Union[Path, None]: |
|
0 commit comments