Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 2829ff8

Browse files
committed
feat: Click element keyword
1 parent 5753a31 commit 2829ff8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

AppiumFlutterLibrary/keywords/_element.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ def input_text(self, locator, text):
2424
element = FlutterElement(application, key_finder)
2525
element.send_keys(text)
2626

27+
def click_element(self, locator):
28+
application = self._current_application()
29+
finder = FlutterFinder()
30+
key_finder = finder.by_value_key(locator)
31+
element = FlutterElement(application, key_finder)
32+
element.click()
33+
2734

2835
def _element_find(self, locator):
2936
application = self._current_application()

0 commit comments

Comments
 (0)