Skip to content

Commit a8e8234

Browse files
committed
Resolved issue with setting BASE64 on library initialization
1 parent b16e05e commit a8e8234

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/SeleniumLibrary/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
WebDriverCache,
5151
WindowKeywords,
5252
)
53-
from SeleniumLibrary.keywords.screenshot import EMBED
53+
from SeleniumLibrary.keywords.screenshot import EMBED, BASE64
5454
from SeleniumLibrary.locators import ElementFinder
5555
from SeleniumLibrary.utils import LibraryListener, is_truthy, _convert_timeout, _convert_delay
5656

@@ -614,8 +614,8 @@ def __init__(
614614
- ``run_on_failure``:
615615
Default action for the `run-on-failure functionality`.
616616
- ``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.
619619
If not given, the directory where the log file is written is used.
620620
- ``plugins``:
621621
Allows extending the SeleniumLibrary with external Python classes.
@@ -846,6 +846,8 @@ def _resolve_screenshot_root_directory(self):
846846
if is_string(screenshot_root_directory):
847847
if screenshot_root_directory.upper() == EMBED:
848848
self.screenshot_root_directory = EMBED
849+
if screenshot_root_directory.upper() == BASE64:
850+
self.screenshot_root_directory = BASE64
849851

850852
@staticmethod
851853
def _get_translation(language: Union[str, None]) -> Union[Path, None]:

0 commit comments

Comments
 (0)