Skip to content

Commit d4aa7f4

Browse files
committed
Added shadowdom_piercing argument to library init
1 parent 1c05660 commit d4aa7f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SeleniumLibrary/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ def __init__(
604604
page_load_timeout=timedelta(minutes=5),
605605
action_chain_delay=timedelta(seconds=0.25),
606606
language: Optional[str] = None,
607+
shadowdom_piercing = True,
607608
):
608609
"""SeleniumLibrary can be imported with several optional arguments.
609610
@@ -671,6 +672,7 @@ def __init__(
671672
self._drivers = WebDriverCache()
672673
translation_file = self._get_translation(language)
673674
DynamicCore.__init__(self, libraries, translation_file)
675+
self._shadowdom_piercing = is_truthy(shadowdom_piercing)
674676

675677
def run_keyword(self, name: str, args: tuple, kwargs: dict):
676678
try:

0 commit comments

Comments
 (0)