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

Are there classes to work with html select? #218

Closed
AlexanderArendar opened this issue Sep 18, 2019 · 2 comments
Closed

Are there classes to work with html select? #218

AlexanderArendar opened this issue Sep 18, 2019 · 2 comments

Comments

@AlexanderArendar
Copy link

AlexanderArendar commented Sep 18, 2019

When I was working with Java/Scala language bindings of webdriver there was Select class which I could use to interact with html selects.

Is there something like this in Dart binding?

@jingbian
Copy link
Collaborator

jingbian commented Feb 5, 2020

I don't think we have that.
Also I don't think it's defined in the WebDriver spec.

@jingbian jingbian closed this as completed Feb 5, 2020
@eossa
Copy link

eossa commented Mar 13, 2023

According to the WebDriver spec a workaround for this case is clicking the option, i.e.:

var option = await driver.findElement(By.cssSelector('select > option[value="foo"]'));
option.click();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants