Skip to content

Commit dfc66f4

Browse files
committed
Fix init - params where not converted to bools.
Fixes #48
1 parent ffe766e commit dfc66f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SeleniumTestability/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ def __init__(
199199
self.js_bundle = join(self.CWD, "js", "testability.js")
200200
self.ctx.event_firing_webdriver = TestabilityListener
201201
self.ctx.testability_settings = {"testability": self}
202-
self.automatic_wait = automatic_wait
203-
self.automatic_injection = automatic_injection
204-
self.error_on_timeout = error_on_timeout
202+
self.automatic_wait = is_truthy(automatic_wait)
203+
self.automatic_injection = is_truthy(automatic_injection)
204+
self.error_on_timeout = is_truthy(error_on_timeout)
205205
self.timeout = timeout # type: ignore
206206
self.hidden_elements = {} # type: Dict[str, str]
207207
self.browser_warn_shown = False

0 commit comments

Comments
 (0)