Beispiel #1
0
 async def wait_for_audio_button(self):
     """Wait for audio button to appear."""
     try:
         await self.image_frame.waitForFunction(
             "$('#recaptcha-audio-button').length",
             timeout=self.animation_timeout)
     except ButtonError:
         raise ButtonError("Audio button missing, aborting")
Beispiel #2
0
 async def wait_for_checkbox(self):
     """Wait for checkbox to appear."""
     try:
         await self.checkbox_frame.waitForFunction(
             "$('#recaptcha-anchor').length",
             timeout=self.animation_timeout)
     except ButtonError:
         raise ButtonError("Checkbox missing, aborting")