Advertisement
Temidayo12

margin.py logs part 2

Sep 25th, 2024
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 63.42 KB | Software | 0 0
  1. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  2. 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'}
  3. raw_result = False
  4. 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'}
  5. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  6. 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
  7. )>
  8.  
  9.     @functools.wraps(params_fn)
  10.     async def inner(self: Any, **kwargs: Any) -> Any:
  11.         raw_result = kwargs.pop("raw_result", False)
  12.         params = remove_undefined(params_fn(self, **kwargs))
  13.    
  14.         # Convert the classname and the method name to a bidi command name
  15.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  16.         if hasattr(owner, "prefix"):
  17.             mod_name = f"{owner.prefix}:{mod_name}"
  18.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  19.    
  20.         future = await self.session.send_command(cmd_name, params)
  21. >       result = await future
  22. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  23. E      
  24. E       Remote-end stacktrace:
  25. E      
  26. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  27.  
  28. cmd_name   = 'browsingContext.navigate'
  29. 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
  30. )>
  31. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  32.  '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',
  33.  'wait': 'complete'}
  34. mod_name   = 'browsingContext'
  35. name       = 'navigate'
  36. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  37. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  38.  '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',
  39.  'wait': 'complete'}
  40. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  41. raw_result = False
  42. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  43. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  44.  
  45. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  46.   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))
  47. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  48. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  49. inline = <function inline.<locals>.inline at 0x7f88acc971c0>
  50. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc97520>
  51. margin = {'left': 2.54}, reference_css = 'margin-left: 1.54cm;', css = ''
  52.  
  53.     @pytest.mark.parametrize(
  54.         "margin, reference_css, css",
  55.         [
  56.             (
  57.                 {"top": inch_in_cm},
  58.                 "margin-top: 1.54cm;",
  59.                 "",
  60.             ),
  61.             (
  62.                 {"left": inch_in_cm},
  63.                 "margin-left: 1.54cm;",
  64.                 "",
  65.             ),
  66.             (
  67.                 {"right": inch_in_cm},
  68.                 "margin-right: 1.54cm;",
  69.                 "",
  70.             ),
  71.             (
  72.                 {"bottom": inch_in_cm},
  73.                 "height: 24.4cm;",
  74.                 "height: 26.94cm;",
  75.             ),
  76.         ],
  77.         ids=[
  78.             "top",
  79.             "left",
  80.             "right",
  81.             "bottom",
  82.         ],
  83.     )
  84.     async def test_margin_default(
  85.         bidi_session,
  86.         top_context,
  87.         inline,
  88.         assert_pdf_image,
  89.         margin,
  90.         reference_css,
  91.         css,
  92.     ):
  93.         default_content_page = inline(get_content(css))
  94. >       await bidi_session.browsing_context.navigate(
  95.             context=top_context["context"],
  96.             url=default_content_page,
  97.             wait="complete"
  98.         )
  99.  
  100. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc97520>
  101. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  102. css        = ''
  103. 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'
  104. inline     = <function inline.<locals>.inline at 0x7f88acc971c0>
  105. margin     = {'left': 2.54}
  106. reference_css = 'margin-left: 1.54cm;'
  107. top_context = {'children': [],
  108.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  109.  'originalOpener': None,
  110.  'parent': None,
  111.  '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',
  112.  'userContext': 'default'}
  113.  
  114. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
  115. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  116.  
  117. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  118. 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'}
  119. raw_result = False
  120. 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'}
  121. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  122. 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
  123. )>
  124.  
  125.     @functools.wraps(params_fn)
  126.     async def inner(self: Any, **kwargs: Any) -> Any:
  127.         raw_result = kwargs.pop("raw_result", False)
  128.         params = remove_undefined(params_fn(self, **kwargs))
  129.    
  130.         # Convert the classname and the method name to a bidi command name
  131.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  132.         if hasattr(owner, "prefix"):
  133.             mod_name = f"{owner.prefix}:{mod_name}"
  134.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  135.    
  136.         future = await self.session.send_command(cmd_name, params)
  137. >       result = await future
  138. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  139. E      
  140. E       Remote-end stacktrace:
  141. E      
  142. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  143.  
  144. cmd_name   = 'browsingContext.navigate'
  145. 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
  146. )>
  147. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  148.  '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',
  149.  'wait': 'complete'}
  150. mod_name   = 'browsingContext'
  151. name       = 'navigate'
  152. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  153. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  154.  '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',
  155.  'wait': 'complete'}
  156. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  157. raw_result = False
  158. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  159. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  160.  
  161. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  162.   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))
  163. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  164. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  165. inline = <function inline.<locals>.inline at 0x7f88ad5d0a60>
  166. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88ad5d0700>
  167. margin = {'right': 2.54}, reference_css = 'margin-right: 1.54cm;', css = ''
  168.  
  169.     @pytest.mark.parametrize(
  170.         "margin, reference_css, css",
  171.         [
  172.             (
  173.                 {"top": inch_in_cm},
  174.                 "margin-top: 1.54cm;",
  175.                 "",
  176.             ),
  177.             (
  178.                 {"left": inch_in_cm},
  179.                 "margin-left: 1.54cm;",
  180.                 "",
  181.             ),
  182.             (
  183.                 {"right": inch_in_cm},
  184.                 "margin-right: 1.54cm;",
  185.                 "",
  186.             ),
  187.             (
  188.                 {"bottom": inch_in_cm},
  189.                 "height: 24.4cm;",
  190.                 "height: 26.94cm;",
  191.             ),
  192.         ],
  193.         ids=[
  194.             "top",
  195.             "left",
  196.             "right",
  197.             "bottom",
  198.         ],
  199.     )
  200.     async def test_margin_default(
  201.         bidi_session,
  202.         top_context,
  203.         inline,
  204.         assert_pdf_image,
  205.         margin,
  206.         reference_css,
  207.         css,
  208.     ):
  209.         default_content_page = inline(get_content(css))
  210. >       await bidi_session.browsing_context.navigate(
  211.             context=top_context["context"],
  212.             url=default_content_page,
  213.             wait="complete"
  214.         )
  215.  
  216. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88ad5d0700>
  217. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  218. css        = ''
  219. 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'
  220. inline     = <function inline.<locals>.inline at 0x7f88ad5d0a60>
  221. margin     = {'right': 2.54}
  222. reference_css = 'margin-right: 1.54cm;'
  223. top_context = {'children': [],
  224.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  225.  'originalOpener': None,
  226.  'parent': None,
  227.  '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',
  228.  'userContext': 'default'}
  229.  
  230. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
  231. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  232.  
  233. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  234. 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'}
  235. raw_result = False
  236. 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'}
  237. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  238. 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
  239. )>
  240.  
  241.     @functools.wraps(params_fn)
  242.     async def inner(self: Any, **kwargs: Any) -> Any:
  243.         raw_result = kwargs.pop("raw_result", False)
  244.         params = remove_undefined(params_fn(self, **kwargs))
  245.    
  246.         # Convert the classname and the method name to a bidi command name
  247.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  248.         if hasattr(owner, "prefix"):
  249.             mod_name = f"{owner.prefix}:{mod_name}"
  250.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  251.    
  252.         future = await self.session.send_command(cmd_name, params)
  253. >       result = await future
  254. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  255. E      
  256. E       Remote-end stacktrace:
  257. E      
  258. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  259.  
  260. cmd_name   = 'browsingContext.navigate'
  261. 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
  262. )>
  263. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  264.  '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',
  265.  'wait': 'complete'}
  266. mod_name   = 'browsingContext'
  267. name       = 'navigate'
  268. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  269. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  270.  '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',
  271.  'wait': 'complete'}
  272. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  273. raw_result = False
  274. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  275. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  276.  
  277. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  278.   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))
  279. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  280. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  281. inline = <function inline.<locals>.inline at 0x7f88acc97130>
  282. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc96dd0>
  283. margin = {'bottom': 2.54}, reference_css = 'height: 24.4cm;'
  284. css = 'height: 26.94cm;'
  285.  
  286.     @pytest.mark.parametrize(
  287.         "margin, reference_css, css",
  288.         [
  289.             (
  290.                 {"top": inch_in_cm},
  291.                 "margin-top: 1.54cm;",
  292.                 "",
  293.             ),
  294.             (
  295.                 {"left": inch_in_cm},
  296.                 "margin-left: 1.54cm;",
  297.                 "",
  298.             ),
  299.             (
  300.                 {"right": inch_in_cm},
  301.                 "margin-right: 1.54cm;",
  302.                 "",
  303.             ),
  304.             (
  305.                 {"bottom": inch_in_cm},
  306.                 "height: 24.4cm;",
  307.                 "height: 26.94cm;",
  308.             ),
  309.         ],
  310.         ids=[
  311.             "top",
  312.             "left",
  313.             "right",
  314.             "bottom",
  315.         ],
  316.     )
  317.     async def test_margin_default(
  318.         bidi_session,
  319.         top_context,
  320.         inline,
  321.         assert_pdf_image,
  322.         margin,
  323.         reference_css,
  324.         css,
  325.     ):
  326.         default_content_page = inline(get_content(css))
  327. >       await bidi_session.browsing_context.navigate(
  328.             context=top_context["context"],
  329.             url=default_content_page,
  330.             wait="complete"
  331.         )
  332.  
  333. assert_pdf_image = <function assert_pdf_image.<locals>.assert_pdf_image at 0x7f88acc96dd0>
  334. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  335. css        = 'height: 26.94cm;'
  336. 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'
  337. inline     = <function inline.<locals>.inline at 0x7f88acc97130>
  338. margin     = {'bottom': 2.54}
  339. reference_css = 'height: 24.4cm;'
  340. top_context = {'children': [],
  341.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  342.  'originalOpener': None,
  343.  'parent': None,
  344.  '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',
  345.  'userContext': 'default'}
  346.  
  347. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:72:
  348. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  349.  
  350. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  351. 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'}
  352. raw_result = False
  353. 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'}
  354. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  355. 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
  356. )>
  357.  
  358.     @functools.wraps(params_fn)
  359.     async def inner(self: Any, **kwargs: Any) -> Any:
  360.         raw_result = kwargs.pop("raw_result", False)
  361.         params = remove_undefined(params_fn(self, **kwargs))
  362.    
  363.         # Convert the classname and the method name to a bidi command name
  364.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  365.         if hasattr(owner, "prefix"):
  366.             mod_name = f"{owner.prefix}:{mod_name}"
  367.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  368.    
  369.         future = await self.session.send_command(cmd_name, params)
  370. >       result = await future
  371. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  372. E      
  373. E       Remote-end stacktrace:
  374. E      
  375. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  376.  
  377. cmd_name   = 'browsingContext.navigate'
  378. 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
  379. )>
  380. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  381.  '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',
  382.  'wait': 'complete'}
  383. mod_name   = 'browsingContext'
  384. name       = 'navigate'
  385. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  386. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  387.  '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',
  388.  'wait': 'complete'}
  389. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  390. raw_result = False
  391. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  392. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  393.  
  394. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  395.   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))
  396. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  397. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  398. inline = <function inline.<locals>.inline at 0x7f88acd0d900>
  399. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0db40>
  400. margin = {'top': 26.94}
  401.  
  402.     @pytest.mark.parametrize(
  403.         "margin",
  404.         [
  405.             {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  406.             {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  407.             {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  408.             {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  409.         ],
  410.         ids=[
  411.             "top",
  412.             "left",
  413.             "right",
  414.             "bottom",
  415.         ],
  416.     )
  417.     async def test_margin_minimum_page_size(
  418.         bidi_session,
  419.         top_context,
  420.         inline,
  421.         assert_pdf_dimensions,
  422.         margin,
  423.     ):
  424.         page = inline("Text")
  425. >       await bidi_session.browsing_context.navigate(
  426.             context=top_context["context"], url=page, wait="complete"
  427.         )
  428.  
  429. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0db40>
  430. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  431. inline     = <function inline.<locals>.inline at 0x7f88acd0d900>
  432. margin     = {'top': 26.94}
  433. 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'
  434. top_context = {'children': [],
  435.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  436.  'originalOpener': None,
  437.  'parent': None,
  438.  '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',
  439.  'userContext': 'default'}
  440.  
  441. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
  442. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  443.  
  444. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  445. 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'}
  446. raw_result = False
  447. 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'}
  448. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  449. 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
  450. )>
  451.  
  452.     @functools.wraps(params_fn)
  453.     async def inner(self: Any, **kwargs: Any) -> Any:
  454.         raw_result = kwargs.pop("raw_result", False)
  455.         params = remove_undefined(params_fn(self, **kwargs))
  456.    
  457.         # Convert the classname and the method name to a bidi command name
  458.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  459.         if hasattr(owner, "prefix"):
  460.             mod_name = f"{owner.prefix}:{mod_name}"
  461.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  462.    
  463.         future = await self.session.send_command(cmd_name, params)
  464. >       result = await future
  465. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  466. E      
  467. E       Remote-end stacktrace:
  468. E      
  469. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  470.  
  471. cmd_name   = 'browsingContext.navigate'
  472. 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
  473. )>
  474. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  475.  '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',
  476.  'wait': 'complete'}
  477. mod_name   = 'browsingContext'
  478. name       = 'navigate'
  479. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  480. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  481.  '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',
  482.  'wait': 'complete'}
  483. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  484. raw_result = False
  485. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  486. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  487.  
  488. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  489.   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))
  490. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  491. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  492. inline = <function inline.<locals>.inline at 0x7f88acd0e0e0>
  493. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0e320>
  494. margin = {'left': 20.59}
  495.  
  496.     @pytest.mark.parametrize(
  497.         "margin",
  498.         [
  499.             {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  500.             {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  501.             {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  502.             {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  503.         ],
  504.         ids=[
  505.             "top",
  506.             "left",
  507.             "right",
  508.             "bottom",
  509.         ],
  510.     )
  511.     async def test_margin_minimum_page_size(
  512.         bidi_session,
  513.         top_context,
  514.         inline,
  515.         assert_pdf_dimensions,
  516.         margin,
  517.     ):
  518.         page = inline("Text")
  519. >       await bidi_session.browsing_context.navigate(
  520.             context=top_context["context"], url=page, wait="complete"
  521.         )
  522.  
  523. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0e320>
  524. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  525. inline     = <function inline.<locals>.inline at 0x7f88acd0e0e0>
  526. margin     = {'left': 20.59}
  527. 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'
  528. top_context = {'children': [],
  529.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  530.  'originalOpener': None,
  531.  'parent': None,
  532.  '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',
  533.  'userContext': 'default'}
  534.  
  535. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
  536. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  537.  
  538. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  539. 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'}
  540. raw_result = False
  541. 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'}
  542. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  543. 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
  544. )>
  545.  
  546.     @functools.wraps(params_fn)
  547.     async def inner(self: Any, **kwargs: Any) -> Any:
  548.         raw_result = kwargs.pop("raw_result", False)
  549.         params = remove_undefined(params_fn(self, **kwargs))
  550.    
  551.         # Convert the classname and the method name to a bidi command name
  552.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  553.         if hasattr(owner, "prefix"):
  554.             mod_name = f"{owner.prefix}:{mod_name}"
  555.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  556.    
  557.         future = await self.session.send_command(cmd_name, params)
  558. >       result = await future
  559. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  560. E      
  561. E       Remote-end stacktrace:
  562. E      
  563. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  564.  
  565. cmd_name   = 'browsingContext.navigate'
  566. 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
  567. )>
  568. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  569.  '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',
  570.  'wait': 'complete'}
  571. mod_name   = 'browsingContext'
  572. name       = 'navigate'
  573. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  574. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  575.  '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',
  576.  'wait': 'complete'}
  577. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  578. raw_result = False
  579. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  580. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  581.  
  582. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  583.   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))
  584. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  585. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  586. inline = <function inline.<locals>.inline at 0x7f88acd0e8c0>
  587. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0eb00>
  588. margin = {'right': 20.59}
  589.  
  590.     @pytest.mark.parametrize(
  591.         "margin",
  592.         [
  593.             {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  594.             {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  595.             {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  596.             {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  597.         ],
  598.         ids=[
  599.             "top",
  600.             "left",
  601.             "right",
  602.             "bottom",
  603.         ],
  604.     )
  605.     async def test_margin_minimum_page_size(
  606.         bidi_session,
  607.         top_context,
  608.         inline,
  609.         assert_pdf_dimensions,
  610.         margin,
  611.     ):
  612.         page = inline("Text")
  613. >       await bidi_session.browsing_context.navigate(
  614.             context=top_context["context"], url=page, wait="complete"
  615.         )
  616.  
  617. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0eb00>
  618. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  619. inline     = <function inline.<locals>.inline at 0x7f88acd0e8c0>
  620. margin     = {'right': 20.59}
  621. 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'
  622. top_context = {'children': [],
  623.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  624.  'originalOpener': None,
  625.  'parent': None,
  626.  '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',
  627.  'userContext': 'default'}
  628.  
  629. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
  630. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  631.  
  632. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  633. 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'}
  634. raw_result = False
  635. 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'}
  636. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  637. 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
  638. )>
  639.  
  640.     @functools.wraps(params_fn)
  641.     async def inner(self: Any, **kwargs: Any) -> Any:
  642.         raw_result = kwargs.pop("raw_result", False)
  643.         params = remove_undefined(params_fn(self, **kwargs))
  644.    
  645.         # Convert the classname and the method name to a bidi command name
  646.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  647.         if hasattr(owner, "prefix"):
  648.             mod_name = f"{owner.prefix}:{mod_name}"
  649.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  650.    
  651.         future = await self.session.send_command(cmd_name, params)
  652. >       result = await future
  653. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  654. E      
  655. E       Remote-end stacktrace:
  656. E      
  657. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  658.  
  659. cmd_name   = 'browsingContext.navigate'
  660. 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
  661. )>
  662. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  663.  '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',
  664.  'wait': 'complete'}
  665. mod_name   = 'browsingContext'
  666. name       = 'navigate'
  667. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  668. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  669.  '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',
  670.  'wait': 'complete'}
  671. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  672. raw_result = False
  673. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  674. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  675.  
  676. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  677.   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))
  678. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  679. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  680. inline = <function inline.<locals>.inline at 0x7f88acd0f0a0>
  681. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0f2e0>
  682. margin = {'bottom': 26.94}
  683.  
  684.     @pytest.mark.parametrize(
  685.         "margin",
  686.         [
  687.             {"top": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  688.             {"left": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  689.             {"right": DEFAULT_PAGE_WIDTH - ceil(inch_in_cm / inch_in_point)},
  690.             {"bottom": DEFAULT_PAGE_HEIGHT - ceil(inch_in_cm / inch_in_point)},
  691.         ],
  692.         ids=[
  693.             "top",
  694.             "left",
  695.             "right",
  696.             "bottom",
  697.         ],
  698.     )
  699.     async def test_margin_minimum_page_size(
  700.         bidi_session,
  701.         top_context,
  702.         inline,
  703.         assert_pdf_dimensions,
  704.         margin,
  705.     ):
  706.         page = inline("Text")
  707. >       await bidi_session.browsing_context.navigate(
  708.             context=top_context["context"], url=page, wait="complete"
  709.         )
  710.  
  711. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0f2e0>
  712. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  713. inline     = <function inline.<locals>.inline at 0x7f88acd0f0a0>
  714. margin     = {'bottom': 26.94}
  715. 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'
  716. top_context = {'children': [],
  717.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  718.  'originalOpener': None,
  719.  'parent': None,
  720.  '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',
  721.  'userContext': 'default'}
  722.  
  723. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:154:
  724. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  725.  
  726. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  727. 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'}
  728. raw_result = False
  729. 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'}
  730. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  731. 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
  732. )>
  733.  
  734.     @functools.wraps(params_fn)
  735.     async def inner(self: Any, **kwargs: Any) -> Any:
  736.         raw_result = kwargs.pop("raw_result", False)
  737.         params = remove_undefined(params_fn(self, **kwargs))
  738.    
  739.         # Convert the classname and the method name to a bidi command name
  740.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  741.         if hasattr(owner, "prefix"):
  742.             mod_name = f"{owner.prefix}:{mod_name}"
  743.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  744.    
  745.         future = await self.session.send_command(cmd_name, params)
  746. >       result = await future
  747. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  748. E      
  749. E       Remote-end stacktrace:
  750. E      
  751. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  752.  
  753. cmd_name   = 'browsingContext.navigate'
  754. 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
  755. )>
  756. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  757.  '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',
  758.  'wait': 'complete'}
  759. mod_name   = 'browsingContext'
  760. name       = 'navigate'
  761. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  762. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  763.  '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',
  764.  'wait': 'complete'}
  765. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  766. raw_result = False
  767. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  768. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  769.  
  770. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  771.   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))
  772. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  773. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  774. inline = <function inline.<locals>.inline at 0x7f88acd0f880>
  775. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0fac0>
  776. margin = {}
  777.  
  778.     @pytest.mark.parametrize(
  779.         "margin",
  780.         [
  781.             {},
  782.             {"top": 0, "left": 0, "right": 0, "bottom": 0},
  783.             {"top": 2, "left": 2, "right": 2, "bottom": 2}
  784.         ],
  785.         ids=[
  786.             "default",
  787.             "0",
  788.             "2"
  789.         ],
  790.     )
  791.     async def test_margin_does_not_affect_page_size(
  792.         bidi_session,
  793.         top_context,
  794.         inline,
  795.         assert_pdf_dimensions,
  796.         margin
  797.     ):
  798.         url = inline("")
  799. >       await bidi_session.browsing_context.navigate(
  800.             context=top_context["context"], url=url, wait="complete"
  801.         )
  802.  
  803. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acd0fac0>
  804. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  805. inline     = <function inline.<locals>.inline at 0x7f88acd0f880>
  806. margin     = {}
  807. top_context = {'children': [],
  808.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  809.  'originalOpener': None,
  810.  'parent': None,
  811.  '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',
  812.  'userContext': 'default'}
  813. 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'
  814.  
  815. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
  816. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  817.  
  818. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  819. 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'}
  820. raw_result = False
  821. 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'}
  822. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  823. 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
  824. )>
  825.  
  826.     @functools.wraps(params_fn)
  827.     async def inner(self: Any, **kwargs: Any) -> Any:
  828.         raw_result = kwargs.pop("raw_result", False)
  829.         params = remove_undefined(params_fn(self, **kwargs))
  830.    
  831.         # Convert the classname and the method name to a bidi command name
  832.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  833.         if hasattr(owner, "prefix"):
  834.             mod_name = f"{owner.prefix}:{mod_name}"
  835.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  836.    
  837.         future = await self.session.send_command(cmd_name, params)
  838. >       result = await future
  839. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  840. E      
  841. E       Remote-end stacktrace:
  842. E      
  843. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  844.  
  845. cmd_name   = 'browsingContext.navigate'
  846. 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
  847. )>
  848. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  849.  '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',
  850.  'wait': 'complete'}
  851. mod_name   = 'browsingContext'
  852. name       = 'navigate'
  853. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  854. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  855.  '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',
  856.  'wait': 'complete'}
  857. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  858. raw_result = False
  859. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  860. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  861.  
  862. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  863.   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))
  864. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  865. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  866. inline = <function inline.<locals>.inline at 0x7f88acb540d0>
  867. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54310>
  868. margin = {'bottom': 0, 'left': 0, 'right': 0, 'top': 0}
  869.  
  870.     @pytest.mark.parametrize(
  871.         "margin",
  872.         [
  873.             {},
  874.             {"top": 0, "left": 0, "right": 0, "bottom": 0},
  875.             {"top": 2, "left": 2, "right": 2, "bottom": 2}
  876.         ],
  877.         ids=[
  878.             "default",
  879.             "0",
  880.             "2"
  881.         ],
  882.     )
  883.     async def test_margin_does_not_affect_page_size(
  884.         bidi_session,
  885.         top_context,
  886.         inline,
  887.         assert_pdf_dimensions,
  888.         margin
  889.     ):
  890.         url = inline("")
  891. >       await bidi_session.browsing_context.navigate(
  892.             context=top_context["context"], url=url, wait="complete"
  893.         )
  894.  
  895. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54310>
  896. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  897. inline     = <function inline.<locals>.inline at 0x7f88acb540d0>
  898. margin     = {'bottom': 0, 'left': 0, 'right': 0, 'top': 0}
  899. top_context = {'children': [],
  900.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  901.  'originalOpener': None,
  902.  'parent': None,
  903.  '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',
  904.  'userContext': 'default'}
  905. 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'
  906.  
  907. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
  908. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  909.  
  910. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  911. 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'}
  912. raw_result = False
  913. 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'}
  914. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  915. 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
  916. )>
  917.  
  918.     @functools.wraps(params_fn)
  919.     async def inner(self: Any, **kwargs: Any) -> Any:
  920.         raw_result = kwargs.pop("raw_result", False)
  921.         params = remove_undefined(params_fn(self, **kwargs))
  922.    
  923.         # Convert the classname and the method name to a bidi command name
  924.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  925.         if hasattr(owner, "prefix"):
  926.             mod_name = f"{owner.prefix}:{mod_name}"
  927.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  928.    
  929.         future = await self.session.send_command(cmd_name, params)
  930. >       result = await future
  931. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  932. E      
  933. E       Remote-end stacktrace:
  934. E      
  935. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  936.  
  937. cmd_name   = 'browsingContext.navigate'
  938. 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
  939. )>
  940. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  941.  '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',
  942.  'wait': 'complete'}
  943. mod_name   = 'browsingContext'
  944. name       = 'navigate'
  945. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  946. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  947.  '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',
  948.  'wait': 'complete'}
  949. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  950. raw_result = False
  951. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  952. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  953.  
  954. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  955.   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))
  956. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  957. top_context = {'children': [], 'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18', 'originalOpener': None, 'parent': None, ...}
  958. inline = <function inline.<locals>.inline at 0x7f88acb548b0>
  959. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54af0>
  960. margin = {'bottom': 2, 'left': 2, 'right': 2, 'top': 2}
  961.  
  962.     @pytest.mark.parametrize(
  963.         "margin",
  964.         [
  965.             {},
  966.             {"top": 0, "left": 0, "right": 0, "bottom": 0},
  967.             {"top": 2, "left": 2, "right": 2, "bottom": 2}
  968.         ],
  969.         ids=[
  970.             "default",
  971.             "0",
  972.             "2"
  973.         ],
  974.     )
  975.     async def test_margin_does_not_affect_page_size(
  976.         bidi_session,
  977.         top_context,
  978.         inline,
  979.         assert_pdf_dimensions,
  980.         margin
  981.     ):
  982.         url = inline("")
  983. >       await bidi_session.browsing_context.navigate(
  984.             context=top_context["context"], url=url, wait="complete"
  985.         )
  986.  
  987. assert_pdf_dimensions = <function assert_pdf_dimensions.<locals>.assert_pdf_dimensions at 0x7f88acb54af0>
  988. bidi_session = <webdriver.bidi.client.BidiSession object at 0x7f88ad61eec0>
  989. inline     = <function inline.<locals>.inline at 0x7f88acb548b0>
  990. margin     = {'bottom': 2, 'left': 2, 'right': 2, 'top': 2}
  991. top_context = {'children': [],
  992.  'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  993.  'originalOpener': None,
  994.  'parent': None,
  995.  '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',
  996.  'userContext': 'default'}
  997. 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'
  998.  
  999. testing/web-platform/tests/webdriver/tests/bidi/browsing_context/print/margin.py:202:
  1000. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1001.  
  1002. self = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  1003. 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'}
  1004. raw_result = False
  1005. 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'}
  1006. mod_name = 'browsingContext', cmd_name = 'browsingContext.navigate'
  1007. 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
  1008. )>
  1009.  
  1010.     @functools.wraps(params_fn)
  1011.     async def inner(self: Any, **kwargs: Any) -> Any:
  1012.         raw_result = kwargs.pop("raw_result", False)
  1013.         params = remove_undefined(params_fn(self, **kwargs))
  1014.    
  1015.         # Convert the classname and the method name to a bidi command name
  1016.         mod_name = owner.__name__[0].lower() + owner.__name__[1:]
  1017.         if hasattr(owner, "prefix"):
  1018.             mod_name = f"{owner.prefix}:{mod_name}"
  1019.         cmd_name = f"{mod_name}.{to_camelcase(name)}"
  1020.    
  1021.         future = await self.session.send_command(cmd_name, params)
  1022. >       result = await future
  1023. E       webdriver.bidi.error.UnknownErrorException: unknown error (Error: NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_SECURITY, SEC_ERROR_EXPIRED_ISSUER_CERTIFICATE))
  1024. E      
  1025. E       Remote-end stacktrace:
  1026. E      
  1027. E       onLocationChange@chrome://remote/content/shared/Navigate.sys.mjs:437:26
  1028.  
  1029. cmd_name   = 'browsingContext.navigate'
  1030. 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
  1031. )>
  1032. kwargs     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  1033.  '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',
  1034.  'wait': 'complete'}
  1035. mod_name   = 'browsingContext'
  1036. name       = 'navigate'
  1037. owner      = <class 'webdriver.bidi.modules.browsing_context.BrowsingContext'>
  1038. params     = {'context': 'd4ba1629-80c3-46d7-a305-811cf92bfa18',
  1039.  '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',
  1040.  'wait': 'complete'}
  1041. params_fn  = <function BrowsingContext.navigate at 0x7f88afbd3d90>
  1042. raw_result = False
  1043. result_fn  = <function BrowsingContext._navigate at 0x7f88afbd3e20>
  1044. self       = <webdriver.bidi.modules.browsing_context.BrowsingContext object at 0x7f88ad61ef20>
  1045.  
  1046. testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules/_module.py:76: UnknownErrorException
  1047.  0:28.28 INFO Got 1 unexpected results, with 0 unexpected passes
  1048.  0:28.28 wptserve INFO Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
  1049.  0:28.67 wptserve INFO Stopped http server on 127.0.0.1:9000
  1050.  0:28.67 wptserve INFO Stopped http server on 127.0.0.1:8003
  1051.  0:28.67 wptserve INFO Stopped http server on 127.0.0.1:8001
  1052.  0:28.68 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
  1053.  0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8000
  1054.  0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8445
  1055.  0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8444
  1056.  0:28.68 wptserve INFO Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
  1057.  0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8002
  1058.  0:28.68 wptserve INFO Stopped http server on 127.0.0.1:8446
  1059.  0:28.69 wptserve INFO Stopped http server on 127.0.0.1:8443
  1060.  0:28.74 INFO Removed font: Ahem.ttf
  1061.  0:28.76 INFO Closing logging queue
  1062.  0:28.76 INFO queue closed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement