diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index b34e3c7d5bd..08961aa1834 100644 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -1901,7 +1901,7 @@ def get_attribute( timeout = self.__get_new_timeout(timeout) selector, by = self.__recalculate_selector(selector, by) if self.__is_cdp_swap_needed(): - return self.cdp.get_element_attribute(selector) + return self.cdp.get_element_attribute(selector, attribute) self.wait_for_ready_state_complete() time.sleep(0.01) if self.__is_shadow_selector(selector):