Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_default[left] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acc971c0>
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc97520>
- margin = {'left': 2.54}, reference_css = 'margin-left: 1.54cm;', css = ''
- @pytest.mark.parametrize(
- "margin, reference_css, css",
- [
- (
- {"top": inch_in_cm},
- "margin-top: 1.54cm;",
- "",
- ),
- (
- {"left": inch_in_cm},
- "margin-left: 1.54cm;",
- "",
- ),
- (
- {"right": inch_in_cm},
- "margin-right: 1.54cm;",
- "",
- ),
- (
- {"bottom": inch_in_cm},
- "height: 24.4cm;",
- "height: 26.94cm;",
- ),
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_default(
- bidi_session,
- top_context,
- inline,
- assert_pdf_image,
- margin,
- reference_css,
- css,
- ):
- default_content_page = inline(get_content(css))
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"],
- url=default_content_page,
- wait="complete"
- )
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc97520>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- css = ''
- default_content_page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8'
- inline = <function inline.<locals>.inline at 0x7f88acc971c0>
- margin = {'left': 2.54}
- reference_css = 'margin-left: 1.54cm;'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_default[right] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88ad5d0a60>
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88ad5d0700>
- margin = {'right': 2.54}, reference_css = 'margin-right: 1.54cm;', css = ''
- @pytest.mark.parametrize(
- "margin, reference_css, css",
- [
- (
- {"top": inch_in_cm},
- "margin-top: 1.54cm;",
- "",
- ),
- (
- {"left": inch_in_cm},
- "margin-left: 1.54cm;",
- "",
- ),
- (
- {"right": inch_in_cm},
- "margin-right: 1.54cm;",
- "",
- ),
- (
- {"bottom": inch_in_cm},
- "height: 24.4cm;",
- "height: 26.94cm;",
- ),
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_default(
- bidi_session,
- top_context,
- inline,
- assert_pdf_image,
- margin,
- reference_css,
- css,
- ):
- default_content_page = inline(get_content(css))
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"],
- url=default_content_page,
- wait="complete"
- )
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88ad5d0700>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- css = ''
- default_content_page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8'
- inline = <function inline.<locals>.inline at 0x7f88ad5d0a60>
- margin = {'right': 2.54}
- reference_css = 'margin-right: 1.54cm;'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_default[bottom] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acc97130>
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc96dd0>
- margin = {'bottom': 2.54}, reference_css = 'height: 24.4cm;'
- css = 'height: 26.94cm;'
- @pytest.mark.parametrize(
- "margin, reference_css, css",
- [
- (
- {"top": inch_in_cm},
- "margin-top: 1.54cm;",
- "",
- ),
- (
- {"left": inch_in_cm},
- "margin-left: 1.54cm;",
- "",
- ),
- (
- {"right": inch_in_cm},
- "margin-right: 1.54cm;",
- "",
- ),
- (
- {"bottom": inch_in_cm},
- "height: 24.4cm;",
- "height: 26.94cm;",
- ),
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_default(
- bidi_session,
- top_context,
- inline,
- assert_pdf_image,
- margin,
- reference_css,
- css,
- ):
- default_content_page = inline(get_content(css))
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"],
- url=default_content_page,
- wait="complete"
- )
- assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc96dd0>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- css = 'height: 26.94cm;'
- default_content_page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++height%3A+26.94cm%3B%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8'
- inline = <function inline.<locals>.inline at 0x7f88acc97130>
- margin = {'bottom': 2.54}
- reference_css = 'height: 24.4cm;'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...ht%3A+26.94cm%3B%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inl...ht%3A+26.94cm%3B%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++height%3A+26.94cm%3B%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A%0A++++++++%3Cdiv%3E%3C%2Fdiv%3E%0A++++++++%3Cstyle%3E%0A++++++++++++html%2C%0A++++++++++++body+%7B%0A++++++++++++++++margin%3A+0%3B%0A++++++++++++%7D%0A++++++++++++div+%7B%0A++++++++++++++++background-color%3A+black%3B%0A++++++++++++++++height%3A+27.94cm%3B%0A++++++++++++++++height%3A+26.94cm%3B%0A++++++++++++%7D%0A++++++++%3C%2Fstyle%3E%0A++++&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_minimum_page_size[top] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acd0d900>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0db40>
- margin = {'top': 26.94}
- @pytest.mark.parametrize(
- "margin",
- [
- {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_minimum_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin,
- ):
- page = inline("Text")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=page, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0db40>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acd0d900>
- margin = {'top': 26.94}
- page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_minimum_page_size[left] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acd0e0e0>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0e320>
- margin = {'left': 20.59}
- @pytest.mark.parametrize(
- "margin",
- [
- {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_minimum_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin,
- ):
- page = inline("Text")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=page, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0e320>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acd0e0e0>
- margin = {'left': 20.59}
- page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_minimum_page_size[right] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acd0e8c0>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0eb00>
- margin = {'right': 20.59}
- @pytest.mark.parametrize(
- "margin",
- [
- {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_minimum_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin,
- ):
- page = inline("Text")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=page, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0eb00>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acd0e8c0>
- margin = {'right': 20.59}
- page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_minimum_page_size[bottom] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acd0f0a0>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0f2e0>
- margin = {'bottom': 26.94}
- @pytest.mark.parametrize(
- "margin",
- [
- {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
- {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
- ],
- ids=[
- "top",
- "left",
- "right",
- "bottom",
- ],
- )
- async def test_margin_minimum_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin,
- ):
- page = inline("Text")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=page, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0f2e0>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acd0f0a0>
- margin = {'bottom': 26.94}
- page = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8'
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_does_not_affect_page_size[default] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acd0f880>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0fac0>
- margin = {}
- @pytest.mark.parametrize(
- "margin",
- [
- {},
- {"top": 0, "left": 0, "right": 0, "bottom": 0},
- {"top": 2, "left": 2, "right": 2, "bottom": 2}
- ],
- ids=[
- "default",
- "0",
- "2"
- ],
- )
- async def test_margin_does_not_affect_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin
- ):
- url = inline("")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=url, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0fac0>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acd0f880>
- margin = {}
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0AText&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- url = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8'
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_does_not_affect_page_size[0] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acb540d0>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54310>
- margin = {'bottom': 0, 'left': 0, 'right': 0, 'top': 0}
- @pytest.mark.parametrize(
- "margin",
- [
- {},
- {"top": 0, "left": 0, "right": 0, "bottom": 0},
- {"top": 2, "left": 2, "right": 2, "bottom": 2}
- ],
- ids=[
- "default",
- "0",
- "2"
- ],
- )
- async def test_margin_does_not_affect_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin
- ):
- url = inline("")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=url, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54310>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acb540d0>
- margin = {'bottom': 0, 'left': 0, 'right': 0, 'top': 0}
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- url = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8'
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- FAIL test_margin_does_not_affect_page_size[2] - webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
- inline = <function inline.<locals>.inline at 0x7f88acb548b0>
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54af0>
- margin = {'bottom': 2, 'left': 2, 'right': 2, 'top': 2}
- @pytest.mark.parametrize(
- "margin",
- [
- {},
- {"top": 0, "left": 0, "right": 0, "bottom": 0},
- {"top": 2, "left": 2, "right": 2, "bottom": 2}
- ],
- ids=[
- "default",
- "0",
- "2"
- ],
- )
- async def test_margin_does_not_affect_page_size(
- bidi_session,
- top_context,
- inline,
- assert_pdf_dimensions,
- margin
- ):
- url = inline("")
- > await bidi_session.browsing_context.navigate(
- context=top_context["context"], url=url, wait="complete"
- )
- assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54af0>
- bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
- inline = <function inline.<locals>.inline at 0x7f88acb548b0>
- margin = {'bottom': 2, 'left': 2, 'right': 2, 'top': 2}
- top_context = {'children': [],
- 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'originalOpener': None,
- 'parent': None,
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'userContext': 'default'}
- url = 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8'
- testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- raw_result = False
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8', 'wait': 'complete'}
- mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- @functools.wraps(params_fn)
- async def inner(self: Any, **kwargs: Any) -> Any:
- raw_result = kwargs.pop("raw_result", False)
- params = remove_undefined(params_fn(self, **kwargs))
- # Convert the classname and the method name to a bidi command name
- mod_name = owner.__name__[0].lower() + owner.__name__[1:]
- if hasattr(owner, "prefix"):
- mod_name = f"{owner.prefix}:{mod_name}"
- cmd_name = f"{mod_name}.{to_camelcase(name)}"
- future = await self.session.send_command(cmd_name, params)
- > result = await future
- E webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
- E
- E Remote-end stacktrace:
- E
- E onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- cmd_name = 'browsingContext.navigate'
- future = <Future finished exception=UnknownErrorException(unknown error, Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE), onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
- )>
- kwargs = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- mod_name = 'browsingContext'
- name = 'navigate'
- owner = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
- params = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
- 'url': 'https://web-platform.test:8443/webdriver/tests/support/inline.py?doc=%3C%21doctype+html%3E%0A%3Cmeta+charset%3DUTF-8%3E%0A&mime=text%2Fhtml&charset=UTF-8',
- 'wait': 'complete'}
- params_fn = <function BrowsingContext.navigate at 0x7f88afbd3d90>
- raw_result = False
- result_fn = <function BrowsingContext._navigate at 0x7f88afbd3e20>
- self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
- testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
- 0:28.28 INFO Got 1 unexpected results, with 0 unexpected passes
- 0:28.28 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
- 0:28.67 wptserve INFO Stopped http server on 127.0.0.1:9000
- 0:28.67 wptserve INFO Stopped http server on 127.0.0.1:8003
- 0:28.67 wptserve INFO Stopped http server on 127.0.0.1:8001
- 0:28.68 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
- 0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8000
- 0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8445
- 0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8444
- 0:28.68 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
- 0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8002
- 0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8446
- 0:28.69 wptserve INFO Stopped http server on 127.0.0.1:8443
- 0:28.74 INFO Removed font: Ahem.ttf
- 0:28.76 INFO Closing logging queue
- 0:28.76 INFO queue closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement