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

Commit 5f0c6be

Browse files
committed
feat: provisory test file
1 parent 525847c commit 5f0c6be

File tree

1 file changed

+18
-0
lines changed
  • AppiumFlutterLibrary/keywords

1 file changed

+18
-0
lines changed

AppiumFlutterLibrary/keywords/test.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
from appium.webdriver import Remote
3+
from appium_flutter_finder import FlutterElement, FlutterFinder
4+
5+
driver = Remote('http://localhost:4723/wd/hub', dict(
6+
platformName='android',
7+
automationName='flutter',
8+
udid='emulator-5554',
9+
app='/home/igortavtib/Projects/platform-mobile/app-prod-debug.apk'
10+
))
11+
12+
finder = FlutterFinder()
13+
14+
key_finder = finder.by_value_key('input-user')
15+
input_element = FlutterElement(driver, key_finder)
16+
driver.execute('flutter::waitFor', input_element)
17+
input_element.send_keys('Teste 123')
18+

0 commit comments

Comments
 (0)