Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ashwithpoojary98/javaflutterfinder
Flutter driver with Java implementation
https://github.com/ashwithpoojary98/javaflutterfinder
Last synced: 2 months ago
JSON representation
Flutter driver with Java implementation
- Host: GitHub
- URL: https://github.com/ashwithpoojary98/javaflutterfinder
- Owner: ashwithpoojary98
- License: mit
- Created: 2022-10-09T10:00:38.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T10:43:24.000Z (7 months ago)
- Last Synced: 2024-08-03T09:04:30.192Z (6 months ago)
- Language: Java
- Size: 44.9 KB
- Stars: 10
- Watchers: 5
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-learning - Appium Flutter Finder Java
README
# Appium Flutter Finder Java
Flutter appium driver is automation tool with java implementation.[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ashwithpoojary98/javaflutterfinder)
[![GitHub stars](https://img.shields.io/github/stars/ashwithpoojary98/javaflutterfinder.svg?style=flat)](https://github.com/ashwithpoojary98/javaflutterfinder/stargazers)
[![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat )](https://github.com/ashwithpoojary98/javaflutterfinder/pulls)
[![GitHub forks](https://img.shields.io/github/forks/ashwithpoojary98/javaflutterfinder.svg?style=social&label=Fork)](https://github.com/ashwithpoojary98/javaflutterfinder/network)# maven-plugin
[![Build Status](https://github.com/ashwithpoojary98/javaflutterfinder/actions/workflows/mavenbuild.yml/badge.svg)](https://github.com/ashwithpoojary98/javaflutterfinder/actions/workflows/mavenbuild.yml)
## Setup
Add maven dependency to pom.xml```xml
io.github.ashwithpoojary98
appium_flutterfinder_java
1.0.9```
## Maven Center Repo link
https://mvnrepository.com/artifact/io.github.ashwithpoojary98/appium_flutterfinder_java
## Usage```java
import io.appium.java_client.AppiumDriver;
public class FlutterFinderExampleTest {
RemoteWebDriver driver;@BeforeMethod
public void openApp() throws MalformedURLException {
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "emulator-5554");
capabilities.setCapability("platformName", "Android");
capabilities.setCapability("noReset", true);
capabilities.setCapability("app", "");
capabilities.setCapability("automationName", "Flutter");
driver = new AppiumDriver(new URL("http://0.0.0.0:4723/wd/hub"), capabilities);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));
}@Test
public void appiumFlutterTest() {
FlutterFinder finder = new FlutterFinder(driver);
WebElement element = finder.byValueKey("increment");
element.click();
}@AfterMethod
public void tearDown() {
if (driver != null) {
driver.quit();
}
}
}
```
### Automation setup
https://dev.to/ashwithpoojary98/automating-flutter-app-using-flutter-appium-driver-1cmb### list of finder
1. byValueKey(String key)
2. byValueKey(int key)
3. byToolTip(String toolTipText)
4. byType(String type)
5. byText(String input)
6. byAncestor(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly)
7. byDescendant(FlutterElement of, FlutterElement matching, boolean matchRoot, boolean firstMatchOnly)
8. bySemanticsLabel(String label)
9. bySemanticsLabel(Pattern label)### Flutter Common Finders
https://api.flutter.dev/flutter/flutter_test/CommonFinders-class.html### More about flutter finder
https://github.com/appium-userland/appium-flutter-driver## License
appium_flutterfinder_java is released under [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
Copyright (c) 2023 appium_flutterfinder_java