You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the deprecated methods first, last and nth are not marked as such in the python code:
classFrameLocator(SyncBase):
@propertydeffirst(self) ->"FrameLocator":
"""FrameLocator.first Returns locator to the first matching frame. Returns ------- FrameLocator """returnmapping.from_impl(self._impl_obj.first)
@propertydeflast(self) ->"FrameLocator":
"""FrameLocator.last Returns locator to the last matching frame. Returns ------- FrameLocator """returnmapping.from_impl(self._impl_obj.last)
it should use the typing_extensions.deprecated decorator to mark the function as deprecated, so that it warns the user in their IDE:
fromtyping_extensionsimportdeprecatedclassFrameLocator(SyncBase):
@property@deprecated("Use `locator.first` followed by `locator.content_frame` instead.")deffirst(self) ->"FrameLocator":
...
The text was updated successfully, but these errors were encountered:
Page(s)
https://playwright.dev/python/docs/api/class-framelocator#deprecated
Description
the deprecated methods
first
,last
andnth
are not marked as such in the python code:it should use the
typing_extensions.deprecated
decorator to mark the function as deprecated, so that it warns the user in their IDE:The text was updated successfully, but these errors were encountered: