@@ -76,25 +76,25 @@ def open_driver(*args, **kwargs):
7676 finally :
7777 driver .quit ()
7878
79- # @missing_key
80- # class RecaptchaSeleniumtTestCase(TestCase):
81- # # Anticaptcha responds is not fully reliable.
82- # @retry(tries=6)
83- # def test_process(self):
84- # from examples import recaptcha_selenium
85- # from selenium.webdriver.firefox.options import Options
86- # from selenium.webdriver import FirefoxProfile
87-
88- # options = Options()
89- # # options.add_argument("-headless")
90-
91- # ffprofile = FirefoxProfile()
92- # ffprofile.set_preference("intl.accept_languages", "en-US")
93-
94- # with open_driver(firefox_profile=ffprofile, firefox_options=options) as driver:
95- # self.assertIn(
96- # recaptcha_selenium.EXPECTED_RESULT, recaptcha_selenium.process(driver)
97- # )
79+ @missing_key
80+ class RecaptchaSeleniumtTestCase (TestCase ):
81+ # Anticaptcha responds is not fully reliable.
82+ @retry (tries = 6 )
83+ def test_process (self ):
84+ from examples import recaptcha_selenium
85+ from selenium .webdriver .firefox .options import Options
86+ from selenium .webdriver import FirefoxProfile
87+
88+ options = Options ()
89+ # options.add_argument("-headless")
90+
91+ ffprofile = FirefoxProfile ()
92+ ffprofile .set_preference ("intl.accept_languages" , "en-US" )
93+
94+ with open_driver (firefox_profile = ffprofile , firefox_options = options ) as driver :
95+ self .assertIn (
96+ recaptcha_selenium .EXPECTED_RESULT , recaptcha_selenium .process (driver )
97+ )
9898
9999
100100@missing_key
0 commit comments