Skip to content
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
Open

FlutterDriver locator and fluent-style improvements #20785

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

Comments

@paul-hammant
Copy link

@paul-hammant 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.

@zoechi zoechi added this to the Goals milestone Jan 30, 2019
@jonahwilliams jonahwilliams removed the tool label Jan 9, 2020
@jmagman jmagman added this to Awaiting triage in Tools - driver review Jan 10, 2020
@jonahwilliams jonahwilliams moved this from Awaiting triage to Engineer reviewed in Tools - driver review May 1, 2020
@kf6gpe kf6gpe added the P4 label May 29, 2020
@Hixie Hixie removed this from the None. milestone Aug 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Tools - driver review
  
Engineer reviewed
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants