We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, guys
Can someone help me with regexp of selector?
I have this selector: #issues-field-company_id-1923-picker-listEl where 1923 it's changed values. How can I select element by selene library?
#issues-field-company_id-1923-picker-listEl
The text was updated successfully, but these errors were encountered:
Hey!
This question has a little for Selene to deal with.
Technically, in Selene we can do things like:
element = browser.all('.item').filtered_by(have.attribute('id').value('issues-field-company_id-1923-picker-listEl'))
And probably we can add the support of something like:
element = browser.all('.item').filtered_by(have.attribute('id').value_matched('issues-field-company_id-\d+-picker-listEl'))
Probably we should (see #401)... But his is definitely a low-priority feature, because you rarely need regex for such filtering. Reasons:
element = browser.all('.item').filtered_by(have.attribute('id').value_containing('issues-field-company_id-'))
element = browser.element('id^=issues-field-company_id'))
or
elements = browser.all('id^=issues-field-company_id'))
I recommend you using one of the options above.
Sorry, something went wrong.
No branches or pull requests
Hi, guys
Can someone help me with regexp of selector?
I have this selector:
#issues-field-company_id-1923-picker-listEl
where 1923 it's changed values.How can I select element by selene library?
The text was updated successfully, but these errors were encountered: