Skip to content

Commit f1f6886

Browse files
committed
[py] remove deprecated desired_capabilities property from webdriver
1 parent 4513ea9 commit f1f6886

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -771,12 +771,6 @@ def find_elements(self, by=By.ID, value: Optional[str] = None) -> List[WebElemen
771771
# See https://github.com/SeleniumHQ/selenium/issues/4555
772772
return self.execute(Command.FIND_ELEMENTS, {"using": by, "value": value})["value"] or []
773773

774-
@property
775-
def desired_capabilities(self) -> dict:
776-
"""Returns the drivers current desired capabilities being used."""
777-
warnings.warn("desired_capabilities is deprecated. Please call capabilities.", DeprecationWarning, stacklevel=2)
778-
return self.caps
779-
780774
@property
781775
def capabilities(self) -> dict:
782776
"""Returns the drivers current capabilities being used."""

0 commit comments

Comments
 (0)