Skip to content

Commit

Permalink
DOCS: left some todos
Browse files Browse the repository at this point in the history
  • Loading branch information
yashaka committed Jan 23, 2024
1 parent 12477c1 commit f1d46aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions selene/core/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ def func(element: Element):
# and something different for other commands?
# – or maybe actually check the overall state of the page,
# i.e. something like page_source_changed or dom_changed?
# what about:
# perform(command.drag_and_drop_to(target).to_change_location())
# over
# .perform(command.drag_and_drop_to(target, assert_location_changed=True))


def drag_and_drop_to(
target: Element, _assert_location_changed: bool = False
) -> Command[Element]:
Expand Down Expand Up @@ -295,6 +301,8 @@ def set_style_property(name: str, value: Union[str, int]) -> Command[Element]:
),
)

# TODO: add js.drag_and_drop_by_offset(x, y)

@staticmethod
def drag_and_drop_to(target: Element) -> Command[Element]:
"""
Expand Down

0 comments on commit f1d46aa

Please sign in to comment.