Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_open_seed_url_none(driver):
from pypom.exception import UsageError
page = Page(driver)
with pytest.raises(UsageError):
page.open()
def test_no_root_usage_error(self, page, splinter):
root_element = MagicMock()
locator = ("not_valid_strategy", str(random.random()))
from pypom.exception import UsageError
with pytest.raises(UsageError):
Region(page, root=root_element).find_element(*locator)