-
Notifications
You must be signed in to change notification settings - Fork 143
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
Drop down - SelectFrom with Coypu options #92
Comments
That "partial label text" was out of date. I've corrected the readme. This is correct: "locator: The text of the associated label element, the id or name". Whether Coypu will consider an exact match or a substring match on the label text is defined by the Options.TextPrecision setting. You can alread override the globval options for Select From by passing the options to the Select method, rather than the From method as you proposed. e.g.: browser.Select("toyo", Options.Substring).From("make"); |
Your solution is working for me. I haven't noticed the additional parameter. It seemed to me that that options for "Select()" method are used to find items inside the dropdown, and options for "From()" method would be used to find dropdown itself, but I don't need such feature yet. What you explained is fine for me. |
Yes, I agree with that point. Reopening this and I'll seperate out those Options in due course. |
#194 new feature will be available in next release |
Coypu 3.0.0-rc has been released https://github.com/featurist/coypu/releases/tag/3.0.0-rc |
Hi!
I'm using Coypu 2.1.4
The wiki says that for drop down one should use:
// Drop downs
browser.Select("toyota").From("make");
And that the input is found by "partial label text".
The method "From()" comment says "locator: The text of the associated label element, the id or name"
Can you please explain what are the matching options of the "From()" method?
Would it be possible to introduce new method:
public void From(string locator, Options options = null);
To define matching options and not use global ones?
The text was updated successfully, but these errors were encountered: