Skip to content

Commit 820dd05

Browse files
alvarolasernaAlvaro Laserna
andauthored
fix bug related to retrieving drivers from element class (#97)
* fix bug related to retrieving drivers from element class * remove debugging print --------- Co-authored-by: Alvaro Laserna <alvarolaserna@MacBook-Pro-2.local>
1 parent d8e24f9 commit 820dd05

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

tests/appium_app_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_appium_app(self, appium_driver: TestUIDriver):
3131
# .move_to(x=500, y=1000).release().perform()
3232

3333
appium_driver.actions().w3c_actions = ActionBuilder(
34-
appium_driver.get_driver,
34+
appium_driver.get_driver(),
3535
mouse=PointerInput(interaction.POINTER_TOUCH, "touch"))
3636

3737
actions = appium_driver.actions()

tests/appium_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_screenshot_methods(self, selenium_driver: TestUIDriver):
2828
selenium_driver.navigate_to(
2929
"https://github.com/testdevlab/Py-TestUI#image-recognition"
3030
)
31+
selenium_driver.e("css", "[data-content=\"README\"]").wait_until_visible()
3132
selenium_driver.start_recording_screen()
3233
time.sleep(1)
3334
selenium_driver.stop_recording_and_compare(

testui/elements/testui_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, driver, locator_type: str, locator: str):
7272
self.__soft_assert = driver.soft_assert
7373
self.testui_driver = driver
7474
self.device_name = driver.device_name
75-
self.driver = driver.get_driver
75+
self.driver = driver.get_driver()
7676
self.locator = locator
7777
self.locator_type = locator_type
7878
self.__is_collection = False

0 commit comments

Comments
 (0)