diff --git a/feapder/utils/webdriver/selenium_driver.py b/feapder/utils/webdriver/selenium_driver.py index b96b8183..594a029c 100644 --- a/feapder/utils/webdriver/selenium_driver.py +++ b/feapder/utils/webdriver/selenium_driver.py @@ -76,7 +76,7 @@ def __init__(self, xhr_url_regexes: list = None, **kwargs): super(SeleniumDriver, self).__init__(**kwargs) self._xhr_url_regexes = xhr_url_regexes - if self._xhr_url_regexes and self.driver_type != SeleniumDriver.CHROME: + if self._xhr_url_regexes and self._driver_type != SeleniumDriver.CHROME: raise Exception( "xhr_url_regexes only support by chrome now! eg: driver_type=SeleniumDriver.CHROME" )