New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlutterDriver locator and fluent-style improvements #20785

Open
paul-hammant opened this Issue Aug 18, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@paul-hammant
Copy link

paul-hammant commented Aug 18, 2018

To be more like Selenium-WebDriver, FlutterDriver would be better if it had a mechanism to find lists of matches for a given locator.

// WebDriver's Java API:
Element element = webDriver.findElement(locator); // singular match
List<WebElement> elements = webDriver.findElement(locator); // multiple matches, returned as list
String secondElemText = elements.get(1).getText();

FlutterDriver only has mechanisms to target single matches to locators, right now.

To be honest, FlutterDriver's API feels more like Selenium-RC from 2004 (I co-created that) rather than the superior Selenium2 API (WebDriver) that came a few years later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment