Skip to content

Commit

Permalink
feat: move flutter_finder under extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
MummanaSubramanya committed Sep 22, 2024
1 parent c5f0223 commit 807efca
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from appium.common.helper import encode_file_to_base64
from appium.webdriver.extensions.flutter_integration.scroll_directions import ScrollDirection
from appium.webdriver.flutter_finder import FlutterFinder
from appium.webdriver.extensions.flutter_integration.flutter_finder import FlutterFinder
from appium.webdriver.webdriver import WebDriver
from appium.webdriver.webelement import WebElement

Expand Down Expand Up @@ -135,8 +135,8 @@ def scroll_till_visible(
scrollView (str): The view of the scroll. Default value is 'Scrollable'
delta (int): delta for the scroll. Default value is 64
maxScrolls (int): Max times to scroll. Default value is 15
settleBetweenScrollsTimeout (int): settle timeout in milliseconds. Default value is 5000ms
dragDuration (int): time gap between each scroll in milliseconds. Default value is 100ms
settleBetweenScrollsTimeout (float): settle timeout in milliseconds. Default value is 5000
dragDuration (float): time gap between each scroll in milliseconds. Default value is 100
Returns:
Webelement: scrolled element
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/functional/flutter_integration/commands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from appium.webdriver.common.appiumby import AppiumBy
from appium.webdriver.extensions.flutter_integration.scroll_directions import ScrollDirection
from appium.webdriver.flutter_finder import FlutterFinder
from appium.webdriver.extensions.flutter_integration.flutter_finder import FlutterFinder
from test.functional.flutter_integration.helper.test_helper import BaseTestCase


Expand Down
2 changes: 1 addition & 1 deletion test/functional/flutter_integration/finder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from appium.webdriver.common.appiumby import AppiumBy
from appium.webdriver.flutter_finder import FlutterFinder
from appium.webdriver.extensions.flutter_integration.flutter_finder import FlutterFinder
from test.functional.flutter_integration.helper.test_helper import BaseTestCase

LOGIN_BUTTON_FINDER = FlutterFinder.by_text("Login")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from appium.common.helper import encode_file_to_base64
from appium.webdriver.extensions.flutter_integration.flutter_commands import FlutterCommand
from appium.webdriver.extensions.flutter_integration.scroll_directions import ScrollDirection
from appium.webdriver.flutter_finder import FlutterFinder
from appium.webdriver.extensions.flutter_integration.flutter_finder import FlutterFinder
from appium.webdriver.webelement import WebElement as MobileWebElement
from test.unit.helper.test_helper import appium_command, flutter_w3c_driver, get_httpretty_request_body

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import httpretty

from appium.webdriver.extensions.flutter_integration.flutter_commands import FlutterCommand
from appium.webdriver.flutter_finder import FlutterFinder
from appium.webdriver.extensions.flutter_integration.flutter_finder import FlutterFinder
from appium.webdriver.webelement import WebElement as MobileWebElement
from test.unit.helper.test_helper import appium_command, flutter_w3c_driver, get_httpretty_request_body

Expand Down

0 comments on commit 807efca

Please sign in to comment.