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

Unable to clear selects - Element must be user-editable in order to clear it. #126

Open
maraisr opened this issue Nov 21, 2018 · 1 comment

Comments

@maraisr
Copy link
Contributor

maraisr commented Nov 21, 2018

Running the following step fails when targeting selects

And I clear the element by "#my-select"

Error produced: Element must be user-editable in order to clear it.

@dehanw
Copy link
Collaborator

dehanw commented Nov 21, 2018

Hi @maraisr,
Nice to meet you here :) How are you? Hope everything goes well.

In selenium (https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/WebElement.html), webElement.clear() is only applied to the text entry element. Now, Iridium is calling this to clear the text input field.

For the select/drop-down list, my understanding is the default value or blank value could be set to any one of the options for that select by the developers for certain fields. We could not guarantee that the first option is always the blank one. So, webdriver has no idea which option should be selected as the blank value. Maybe, when we are going to clear the select field, we could use
'And I select "Option with blank value" from the "selectList" drop down list', or
'And I select "Option with default value" from the "selectList" drop down list'

Not sure whether the info above could be helpful.

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

No branches or pull requests

2 participants