@@ -661,12 +661,15 @@ def expect_bookmarks_toolbar_visibility(self, expected: bool) -> None:
661661 )
662662
663663 #
664- def set_site_autoplay_permission (self , settings : Literal ["allow-audio-video" , "block-audio-video" , "allow-audio-only" ]) -> BasePage :
664+ def set_site_autoplay_permission (
665+ self ,
666+ settings : Literal ["allow-audio-video" , "block-audio-video" , "allow-audio-only" ],
667+ ) -> BasePage :
665668 """
666669 Open the Site audio-video permission panel and set a specific autoplay setting.
667670
668- Arguments:
669- settings: "allow-audio-video" → Allow Audio and Video, "block-audio-video" → Block Audio and Video,
671+ Arguments:
672+ settings: "allow-audio-video" → Allow Audio and Video, "block-audio-video" → Block Audio and Video,
670673 "allow-audio-only" → Allow Audio but block Video
671674 """
672675 self .click_on ("autoplay-icon-blocked" )
@@ -686,14 +689,13 @@ def set_site_autoplay_permission(self, settings: Literal["allow-audio-video", "b
686689 return self
687690
688691 def verify_autoplay_state (self , expected : Literal ["allow" , "block" ]) -> None :
689- """ Verify the current state of the autoplay permission panel and icon.
690- Arguments:
691- expected: "allow" → Allow Audio and Video, "block" → Block Audio and Video
692+ """Verify the current state of the autoplay permission panel and icon.
693+ Arguments:
694+ expected: "allow" → Allow Audio and Video, "block" → Block Audio and Video
692695 """
693696 if expected == "allow" :
694697 self .element_visible ("permission-popup-audio-video-allowed" )
695698 self .element_not_visible ("autoplay-icon-blocked" )
696699 else :
697700 self .element_visible ("permission-popup-audio-video-blocked" )
698701 self .element_visible ("autoplay-icon-blocked" )
699-
0 commit comments