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

Drop down - SelectFrom with Coypu options #92

Closed
tomajar opened this issue Mar 12, 2014 · 5 comments
Closed

Drop down - SelectFrom with Coypu options #92

tomajar opened this issue Mar 12, 2014 · 5 comments

Comments

@tomajar
Copy link

tomajar commented Mar 12, 2014

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?

@adiel
Copy link
Member

adiel commented Mar 12, 2014

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");

@adiel adiel closed this as completed Mar 12, 2014
@tomajar
Copy link
Author

tomajar commented Mar 12, 2014

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.
Thanks

@adiel
Copy link
Member

adiel commented Mar 12, 2014

Yes, I agree with that point. Reopening this and I'll seperate out those Options in due course.

@obstar
Copy link
Collaborator

obstar commented Dec 8, 2018

#194 new feature will be available in next release

@obstar obstar added this to the Coypu 3 milestone Dec 9, 2018
@obstar
Copy link
Collaborator

obstar commented Dec 11, 2018

Coypu 3.0.0-rc has been released https://github.com/featurist/coypu/releases/tag/3.0.0-rc

@obstar obstar closed this as completed Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants